Scroll to navigation

READ_CACHE_PAGES(9) Memory Management in Linux READ_CACHE_PAGES(9)

NAME

read_cache_pages - populate an address space with some pages & start reads against them

SYNOPSIS

int read_cache_pages(struct address_space * mapping, struct list_head * pages, int (*filler) (void *, struct page *), void * data);

ARGUMENTS

struct address_space * mapping

the address_space

struct list_head * pages

The address of a list_head which contains the target pages. These pages have their ->index populated and are otherwise uninitialised.

int (*)(void *, struct page *) filler

callback routine for filling a single page.

void * data

private data for the callback routine.

DESCRIPTION

Hides the details of the LRU cache etc from the filesystems.

COPYRIGHT

June 2017 Kernel Hackers Manual 4.11