'\" t .\" Title: lookup_bdev .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "LOOKUP_BDEV" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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" lookup_bdev \- lookup a struct block_device by name .SH "SYNOPSIS" .HP \w'struct\ block_device\ *\ lookup_bdev('u .BI "struct block_device * lookup_bdev(const\ char\ *\ " "pathname" ");" .SH "ARGUMENTS" .PP \fIpathname\fR .RS 4 special file representing the block device .RE .SH "DESCRIPTION" .PP Get a reference to the blockdevice at \fIpathname\fR in the current namespace if possible and return it\&. Return ERR_PTR(error) otherwise\&. .SH "COPYRIGHT" .br