Query: find_or_create_page
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
FIND_OR_CREATE_PAGE(9) Memory Management in Linux FIND_OR_CREATE_PAGE(9)NAMEfind_or_create_page - locate or add a pagecache pageSYNOPSISstruct page * find_or_create_page(struct address_space * mapping, pgoff_t index, gfp_t gfp_mask);ARGUMENTSmapping the page's address_space index the page's index into the mapping gfp_mask page allocation modeDESCRIPTIONLooks up the page cache slot at mapping & offset. If there is a page cache page, it is returned locked and with an increased refcount. If the page is not present, a new page is allocated using gfp_mask and added to the page cache and the VM's LRU list. The page is returned locked and with an increased refcount. On memory exhaustion, NULL is returned. find_or_create_page may sleep, even if gfp_flags specifies an atomic allocation!COPYRIGHTKernel Hackers Manual 3.10 June 2014 FIND_OR_CREATE_PAGE(9)
Related Man Pages |
---|
bio_alloc_bioset(9) - centos |
journal_try_to_free_buffers(9) - centos |
write_cache_pages(9) - centos |
vm_page_alloc(9) - freebsd |
blk_make_request(9) - suse |
Similar Topics in the Unix Linux Community |
---|
Weird 'find' results |
Docker learning Phase-I |
CentOS 6 ran out of space, need to reclaim it |
Controlling user input |
Please Welcome Dave Munro to the Moderator Team! |