1READ_CACHE_PAGE_GFP(9) Memory Management in Linux READ_CACHE_PAGE_GFP(9)
2
3
4
6 read_cache_page_gfp - read into page cache, using specified page
7 allocation flags.
8
10 struct page * read_cache_page_gfp(struct address_space * mapping,
11 pgoff_t index, gfp_t gfp);
12
14 mapping
15 the page's address_space
16
17 index
18 the page index
19
20 gfp
21 the page allocator flags to use if allocating
22
24 This is the same as “read_mapping_page(mapping, index, NULL)”, but with
25 any new page allocations done using the specified allocation flags.
26 Note that the Radix tree operations will still use GFP_KERNEL, so you
27 can't expect to do this atomically or anything like that - but you can
28 pass in other page requirements.
29
30 If the page does not get brought uptodate, return -EIO.
31
33Kernel Hackers Manual 2.6. November 2011 READ_CACHE_PAGE_GFP(9)