Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\pagemap.h Create Date:2022-07-28 05:45:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Like add_to_page_cache_locked, but used to add newly allocated pages:* the page is new, so we can just run __SetPageLocked() against it.

Proto:static inline int add_to_page_cache(struct page *page, struct address_space *mapping, unsigned long offset, gfp_t gfp_mask)

Type:int

Parameter:

TypeParameterName
struct page *page
struct address_space *mapping
unsigned longoffset
gfp_tgfp_mask
626  __SetPageLocked(page)
627  error = add_to_page_cache_locked(page, mapping, offset, gfp_mask)
628  If Value for the false possibility is greater at compile time(error) Then __ClearPageLocked(page)
630  Return error
Caller
NameDescribe
huge_add_to_page_cache