table of contents
other versions
- jessie 3.16.56-1+deb8u1
__BREAD_GFP(9) | The Linux VFS | __BREAD_GFP(9) |
NAME¶
__bread_gfp - reads a specified block and returns the bhSYNOPSIS¶
struct buffer_head *
__bread_gfp(struct block_device * bdev,
sector_t block, unsigned size,
gfp_t gfp);
ARGUMENTS¶
bdevthe block_device to read from
block
number of block
size
size (in bytes) to read
gfp
page allocation flag
DESCRIPTION¶
Reads a specified block, and returns buffer head that contains it. The page cache can be allocated from non-movable area not to prevent page migration if you set gfp to zero. It returns NULL if the block was unreadable.COPYRIGHT¶
May 2018 | Kernel Hackers Manual 3.16 |