find_get_pages — gang pagecache lookup
unsigned find_get_pages ( | struct address_space * mapping, |
| pgoff_t start, | |
| unsigned int nr_pages, | |
struct page ** pages); |
mappingThe address_space to search
startThe starting page index
nr_pagesThe maximum number of pages
pagesWhere the resulting pages are placed
find_get_pages will search for and return a group of up to
nr_pages pages in the mapping. The pages are placed at pages.
find_get_pages takes a reference against the returned pages.
The search returns a group of mapping-contiguous pages with ascending indexes. There may be holes in the indices due to not-present pages.
find_get_pages returns the number of pages which were found.