add_to_page_cache(9)

add_to_page_cache9

Add newly allocated pagecache pages

Usage

int add_to_page_cache(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 newly allocated pagecache pages; the page is new, so we can just run SetPageLocked against it. The other page state flags were set by rmqueue.

This function does not add the page to the LRU. The caller must do that.

Releases

2 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0
  2. 5.0

From linux-manual-2.6.26 2.6.26-29 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.