'\" t .\" Title: disk_map_sector_rcu .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Block Devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "DISK_MAP_SECTOR_RCU" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Block Devices" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" disk_map_sector_rcu \- map sector to partition .SH "SYNOPSIS" .HP \w'struct\ hd_struct\ *\ disk_map_sector_rcu('u .BI "struct hd_struct * disk_map_sector_rcu(struct\ gendisk\ *\ " "disk" ", sector_t\ " "sector" ");" .SH "ARGUMENTS" .PP \fIdisk\fR .RS 4 gendisk of interest .RE .PP \fIsector\fR .RS 4 sector to map .RE .SH "DESCRIPTION" .PP Find out which partition \fIsector\fR maps to on \fIdisk\fR\&. This is primarily used for stats accounting\&. .SH "CONTEXT" .PP RCU read locked\&. The returned partition pointer is valid only while preemption is disabled\&. .SH "RETURN" .PP Found partition on success, part0 is returned if no partition matches .SH "COPYRIGHT" .br