__bread(9)

__bread9

Reads a specified block and returns the bh

Usage

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

Overview

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.

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From linux-manual-3.2 3.2.78-1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.