add_to_page_cache_locked
Prev | More Memory Management Functions | Next

## 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

`page`

  page to add

`mapping`

  the page's address_space

`offset`

  page index

`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.

Prev | Up | Next
replace_page_cache_page | Home | add_page_wait_queue