1. NAME

disk_map_sector_rcu - map sector to partition

2. SYNOPSIS

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

3. ARGUMENTS

disk
    gendisk of interest

sector
    sector to map

4. DESCRIPTION

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

5. CONTEXT

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

6. RETURNS

Found partition on success, part0 is returned if no partition matches

7. COPYRIGHT