'\" t .\" Title: blkdev_get_by_path .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "BLKDEV_GET_BY_PATH" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "The Linux VFS" .\" ----------------------------------------------------------------- .\" * 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" blkdev_get_by_path \- open a block device by name .SH "SYNOPSIS" .HP \w'struct\ block_device\ *\ blkdev_get_by_path('u .BI "struct block_device * blkdev_get_by_path(const\ char\ *\ " "path" ", fmode_t\ " "mode" ", void\ *\ " "holder" ");" .SH "ARGUMENTS" .PP \fIconst char * path\fR .RS 4 path to the block device to open .RE .PP \fIfmode_t mode\fR .RS 4 FMODE_* mask .RE .PP \fIvoid * holder\fR .RS 4 exclusive holder identifier .RE .SH "DESCRIPTION" .PP Open the blockdevice described by the device file at \fIpath\fR\&. \fImode\fR and \fIholder\fR are identical to \fBblkdev_get\fR\&. .PP On success, the returned block_device has reference count of one\&. .SH "CONTEXT" .PP Might sleep\&. .SH "RETURN" .PP Pointer to block_device on success, ERR_PTR(\-errno) on failure\&. .SH "COPYRIGHT" .br