'\" t .\" Title: read_cache_page .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Memory Management in Linux .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "READ_CACHE_PAGE" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Memory Management in Linux" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" read_cache_page \- read into page cache, fill it if needed .SH "SYNOPSIS" .HP \w'struct\ page\ *\ read_cache_page('u .BI "struct page * read_cache_page(struct\ address_space\ *\ " "mapping" ", pgoff_t\ " "index" ", int\ (*" "filler" ")\ (void\ *,\ struct\ page\ *), void\ *\ " "data" ");" .SH "ARGUMENTS" .PP \fImapping\fR .RS 4 the page\*(Aqs address_space .RE .PP \fIindex\fR .RS 4 the page index .RE .PP \fIfiller\fR .RS 4 function to perform the read .RE .PP \fIdata\fR .RS 4 first arg to filler(data, page) function, often left as NULL .RE .SH "DESCRIPTION" .PP Read into the page cache\&. If a page already exists, and \fBPageUptodate\fR is not set, try to fill the page and wait for it to become unlocked\&. .PP If the page does not get brought uptodate, return \-EIO\&. .SH "COPYRIGHT" .br