函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\pagemap.h Create Date:2022-07-27 06:45:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static inline int add_to_page_cache(struct page *page, struct address_space *mapping, unsigned long offset, gfp_t gfp_mask)

返回类型:int

参数:

类型参数名称
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  如果此条件成立可能性小(为编译器优化)(error)则__ClearPageLocked(page)
630  返回:error
调用者
名称描述
huge_add_to_page_cache