Rechercher une page de manuel
add_to_page_cache
Langue: en
Version: June 2009 (debian - 07/07/09)
Section: 9 (Appels noyau Linux)
NAME
add_to_page_cache - add newly allocated pagecache pagesSYNOPSIS
- 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
DESCRIPTION
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.
COPYRIGHT
Quand il se présente à la culture scientifique, l'esprit est même très
vieux, car il a l'âge de ses préjugés.
-+- Gaston Bachelard ; La formation scientifique
vieux, car il a l'âge de ses préjugés.
-+- Gaston Bachelard ; La formation scientifique
Contenus ©2006-2012 Benjamin Poulain
Design ©2006-2012 Maxime Vantorre