Scroll to navigation

__BREAD(9) The Linux VFS __BREAD(9)

NAME

__bread - reads a specified block and returns the bh

SYNOPSIS

struct buffer_head * __bread(struct block_device * bdev, sector_t block, unsigned size);

ARGUMENTS

bdev
the block_device to read from
block
number of block
size
size (in bytes) to read

DESCRIPTION

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.

COPYRIGHT

December 2017 Kernel Hackers Manual 3.16