add_to_page_cache_locked(9)

add_to_page_cache_locked9

Add a locked page to the pagecache

Usage

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

Arguments

page

page to add

mapping

the page's address_space

offset

page index

gfp_mask

page allocation mode

Overview

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.

Releases

4 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0
  2. 7
  3. 8
  4. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.