1DISK_MAP_SECTOR_RCU(9)           Block Devices          DISK_MAP_SECTOR_RCU(9)
2
3
4

NAME

6       disk_map_sector_rcu - map sector to partition
7

SYNOPSIS

9       struct hd_struct * disk_map_sector_rcu(struct gendisk * disk,
10                                              sector_t sector);
11

ARGUMENTS

13       disk
14           gendisk of interest
15
16       sector
17           sector to map
18

DESCRIPTION

20       Find out which partition sector maps to on disk. This is primarily used
21       for stats accounting.
22

CONTEXT

24       RCU read locked. The returned partition pointer is valid only while
25       preemption is disabled.
26

RETURNS

28       Found partition on success, part0 is returned if no partition matches
29
31Kernel Hackers Manual 2.6.       November 2011          DISK_MAP_SECTOR_RCU(9)
Impressum