函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-29 10:35:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get the link contents into pagecache

函数原型:const char *page_get_link(struct dentry *dentry, struct inode *inode, struct delayed_call *callback)

返回类型:char

参数:

类型参数名称
struct dentry *dentry
struct inode *inode
struct delayed_call *callback
4720  mapping等于i_mapping
4722  如果非dentry
4723  page等于d_get_page - find and get a page reference*@mapping: the address_space to search*@offset: the page index* Looks up the page cache slot at @mapping & @offset. If there is a* page cache page, it is returned with an increased refcount.
4724  如果非page则返回:错误号
4726  如果非PageUptodate(page)则
4728  返回:错误号
4730  否则
4731  page等于read_mapping_page(mapping, 0, NULL)
4732  如果是错误则返回:page
4735  I really wish we had closures with sane typechecking...
4736  BUG_ON(mapping_gfp_mask(mapping) & __GFP_HIGHMEM)
4737  kaddr等于page_address(page)
4738  nd_terminate_link(kaddr, i_size, PAGE_SIZE - 1)
4739  返回:kaddr
调用者
名称描述
page_readlink