read_cache_page(9)

read_cache_page9

Read into page cache, fill it if needed

Usage

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

Overview

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.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.