'\" t .\" Title: blk_alloc_devt .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Block Devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "BLK_ALLOC_DEVT" "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" blk_alloc_devt \- allocate a dev_t for a partition .SH "SYNOPSIS" .HP \w'int\ blk_alloc_devt('u .BI "int blk_alloc_devt(struct\ hd_struct\ *\ " "part" ", dev_t\ *\ " "devt" ");" .SH "ARGUMENTS" .PP \fIpart\fR .RS 4 partition to allocate dev_t for .RE .PP \fIdevt\fR .RS 4 out parameter for resulting dev_t .RE .SH "DESCRIPTION" .PP Allocate a dev_t for block device\&. .SH "RETURN" .PP 0 on success, allocated dev_t is returned in *\fIdevt\fR\&. \-errno on failure\&. .SH "CONTEXT" .PP Might sleep\&. .SH "COPYRIGHT" .br