Name
disk_map_sector_rcu —
map sector to partition
Synopsis
struct hd_struct * disk_map_sector_rcu ( | struct gendisk * disk, |
| sector_t sector) ; |
Arguments
disk
gendisk of interest
sector
sector to map
Description
Find out which partition sector
maps to on disk
. This is
primarily used for stats accounting.
CONTEXT
RCU read locked. The returned partition pointer is always valid
because its refcount is grabbed.
RETURNS
Found partition on success, part0 is returned if no partition matches
or the matched partition is being deleted.