'\" t .\" Title: disk_expand_part_tbl .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Block Devices .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "DISK_EXPAND_PART_TBL" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "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_expand_part_tbl \- expand disk\->part_tbl .SH "SYNOPSIS" .HP \w'int\ disk_expand_part_tbl('u .BI "int disk_expand_part_tbl(struct\ gendisk\ *\ " "disk" ", int\ " "partno" ");" .SH "ARGUMENTS" .PP \fIstruct gendisk * disk\fR .RS 4 disk to expand part_tbl for .RE .PP \fIint partno\fR .RS 4 expand such that this partno can fit in .RE .SH "DESCRIPTION" .PP Expand disk\->part_tbl such that \fIpartno\fR can fit in\&. disk\->part_tbl uses RCU to allow unlocked dereferencing for stats and other stuff\&. .PP LOCKING: Matching bd_mutex locked, might sleep\&. .SH "RETURN" .PP 0 on success, \-errno on failure\&. .SH "COPYRIGHT" .br