READ_CACHE_PAGE

Section: Memory Management in Linux (9)
Updated: February 2011
Index Return to Main Contents
 

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

destination for read data
 

DESCRIPTION

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

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

COPYRIGHT