'\" t .\" Title: disk_get_part .\" 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_GET_PART" "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_get_part \- get partition .SH "SYNOPSIS" .HP \w'struct\ hd_struct\ *\ disk_get_part('u .BI "struct hd_struct * disk_get_part(struct\ gendisk\ *\ " "disk" ", int\ " "partno" ");" .SH "ARGUMENTS" .PP \fIdisk\fR .RS 4 disk to look partition from .RE .PP \fIpartno\fR .RS 4 partition number .RE .SH "DESCRIPTION" .PP Look for partition \fIpartno\fR from \fIdisk\fR\&. If found, increment reference count and return it\&. .SH "CONTEXT" .PP Don\*(Aqt care\&. .SH "RETURN" .PP Pointer to the found partition on success, NULL if not found\&. .SH "COPYRIGHT" .br