---
name: "__bread_gfp"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/__bread_gfp"
---

# \_\_bread\_gfp(9)

reads a specified block and returns the bh

## NAME

\_\_bread\_gfp - reads a specified block and returns the bh

## SYNOPSIS

**struct buffer\_head \* \_\_bread\_gfp(struct block\_device \*** *bdev***, sector\_t** *block***, unsigned** *size***, gfp\_t** *gfp***);**

## ARGUMENTS

*bdev*

the 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
