'\" t .\" Title: __bread .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: December 2017 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 3.16.51 .\" Language: English .\" .TH "__BREAD" "9" "December 2017" "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" __bread \- reads a specified block and returns the bh .SH "SYNOPSIS" .HP \w'struct\ buffer_head\ *\ __bread('u .BI "struct buffer_head * __bread(struct\ block_device\ *\ " "bdev" ", sector_t\ " "block" ", unsigned\ " "size" ");" .SH "ARGUMENTS" .PP \fIbdev\fR .RS 4 the block_device to read from .RE .PP \fIblock\fR .RS 4 number of block .RE .PP \fIsize\fR .RS 4 size (in bytes) to read .RE .SH "DESCRIPTION" .PP Reads a specified block, and returns buffer head that contains it\&. The page cache is allocated from movable area so that it can be migrated\&. It returns NULL if the block was unreadable\&. .SH "COPYRIGHT" .br