disk_map_sector_rcu(9)

disk_map_sector_rcu9

Map sector to partition

Usage

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

Arguments

disk

gendisk of interest

sector

sector to map

Overview

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 valid only while preemption is disabled.

Return

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

Releases

4 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0
  2. 7
  3. 8
  4. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.