函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:d_or_create_page - locate or add a pagecache page*@mapping: the page's address_space*@index: the page's index into the mapping*@gfp_mask: page allocation mode* Looks up the page cache slot at @mapping & @offset

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

返回类型:struct page

参数:

类型参数名称
struct address_space *mapping
unsigned longoffset
gfp_tgfp_mask
310  返回:pagecache_get_page - find and get a page reference*@mapping: the address_space to search*@offset: the page index*@fgp_flags: PCG flags*@gfp_mask: gfp mask to use for the page cache data page allocation* Looks up the page cache slot at @mapping & @offset.
调用者
名称描述
grow_dev_pageCreate the page-cache page that contains the requested block.* This is used purely for blockdev mappings.
aio_setup_ring
grab_cache_pageReturns locked page at given index in given cache, creating it if needed.