Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_link

Proto:static __always_inline const char *get_link(struct nameidata *nd)

Type:char

Parameter:

TypeParameterName
struct nameidata *nd
1047  last = stack + depth - 1
1048  dentry = dentry
1049  inode = link_inode
1053  If Not (flags & RCU pathwalk mode; semi-internal ) Then
1054  touch_atime( & link)
1055  cond_resched()
1056  Else if atime_needs_update( & link, inode) Then
1057  If Value for the false possibility is greater at compile time(lazy_walk - try to switch to ref-walk mode) Then Return ERR_PTR( - ECHILD)
1059  touch_atime( & link)
1062  error = security_inode_follow_link(dentry, inode, flags & RCU pathwalk mode; semi-internal )
1064  If Value for the false possibility is greater at compile time(error) Then Return ERR_PTR(error)
1067  last_type = LAST_BIND
1068  res = READ_ONCE(i_link)
1069  If Not res Then
1070  const char * ( * get)(struct dentry * , struct inode * , struct delayed_call * )
1072  get = get_link
1074  res = get(NULL, inode, & done)
1075  If res == ERR_PTR( - ECHILD) Then
1080  Else
1081  res = get(dentry, inode, & done)
1083  If IS_ERR_OR_NULL(res) Then Return res
1086  If res == '/' Then
1087  If Not mnt Then set_root(nd)
1089  If Value for the false possibility is greater at compile time(nd_jump_root(nd)) Then Return ERR_PTR( - ECHILD)
1091  When Value for the false possibility is greater at compile time( * ++res == '/') cycle
1094  If Not res Then res = NULL
1096  Return res
Caller
NameDescribe
link_path_walkName resolution.* This is the basic name resolution function, turning a pathname into* the final dentry. We expect 'base' to be positive and a directory.* Returns 0 and nd will have valid dentry and mnt on success.
trailing_symlink