---
name: "read_cache_page_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/read_cache_page_gfp"
---

# read\_cache\_page\_gfp(9)

read into page cache, using specified page allocation flags.

## NAME

read\_cache\_page\_gfp - read into page cache, using specified page allocation flags.

## SYNOPSIS

**struct page \* read\_cache\_page\_gfp(struct address\_space \*** *mapping***, pgoff\_t** *index***, gfp\_t** *gfp***);**

## ARGUMENTS

*mapping*

the page's address\_space

*index*

the page index

*gfp*

the page allocator flags to use if allocating

## DESCRIPTION

This is the same as “read\_mapping\_page(mapping, index, NULL)”, but with any new page allocations done using the specified allocation flags.

If the page does not get brought uptodate, return -EIO.

## COPYRIGHT
