Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-28 20:05:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get the link contents into pagecache

Proto:const char *page_get_link(struct dentry *dentry, struct inode *inode, struct delayed_call *callback)

Type:char

Parameter:

TypeParameterName
struct dentry *dentry
struct inode *inode
struct delayed_call *callback
4720  mapping = i_mapping
4722  If Not dentry Then
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  If Not page Then Return ERR_PTR( - ECHILD)
4726  If Not PageUptodate(page) Then
4728  Return ERR_PTR( - ECHILD)
4730  Else
4731  page = read_mapping_page(mapping, 0, NULL)
4732  If IS_ERR(page) Then Return 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  Return kaddr
Caller
NameDescribe
page_readlink