Scroll to navigation

ADD_TO_PAGE_CACHE_LO(9) Memory Management in Linux ADD_TO_PAGE_CACHE_LO(9)

NAME

add_to_page_cache_locked - add a locked page to the pagecache

SYNOPSIS

int add_to_page_cache_locked(struct page * page, struct address_space * mapping, pgoff_t offset, gfp_t gfp_mask);

ARGUMENTS

struct page * page
page to add

struct address_space * mapping

the page's address_space

pgoff_t offset

page index

gfp_t gfp_mask

page allocation mode

DESCRIPTION

This function is used to add a page to the pagecache. It must be locked. This function does not add the page to the LRU. The caller must do that.

COPYRIGHT

July 2017 Kernel Hackers Manual 4.11