---
name: "read_cache_page"
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"
---

# read\_cache\_page(9)

read into page cache, fill it if needed

## NAME

read\_cache\_page - read into page cache, fill it if needed

## SYNOPSIS

**struct page \* read\_cache\_page(struct address\_space \*** *mapping***, pgoff\_t** *index***, int (\****filler***) (void \*, struct page \*), void \*** *data***);**

## ARGUMENTS

*mapping*

the page's address\_space

*index*

the page index

*filler*

function to perform the read

*data*

first arg to filler(data, page) function, often left as NULL

## DESCRIPTION

Read into the page cache. If a page already exists, and **PageUptodate** is not set, try to fill the page and wait for it to become unlocked.

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

## COPYRIGHT
