Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Handle a dentry that is managed in some way.* - Flagged for transit management (autofs)* - Flagged as mountpoint* - Flagged as automount point* This may only be called in refwalk mode.* On success path->dentry is known positive.

Proto:static int follow_managed(struct path *path, struct nameidata *nd)

Type:int

Parameter:

TypeParameterName
struct path *path
struct nameidata *nd
1220  mnt = mnt
1222  bool need_mntput = false
1223  ret = 0
1228  When flags = smp_load_acquire( & protected by d_lock ) , Value for the false possibility is greater at compile time(flags & DCACHE_MANAGED_DENTRY) cycle
1233  BUG_ON(!d_op)
1234  BUG_ON(!d_manage)
1235  ret = d_manage(path, false)
1237  If ret < 0 Then Break
1242  If flags & s a mountpoint Then
1243  mounted = lookup_mnt(path)
1244  If mounted Then
1245  dput(dentry)
1246  If need_mntput Then mntput(mnt)
1248  mnt = mounted
1250  need_mntput = true
1251  Continue
1263  If ret < 0 Then Break
1265  Continue
1269  Break
1272  If need_mntput && mnt == mnt Then mntput(mnt)
1274  If need_mntput Then flags |= LOOKUP_JUMPED
1276  If ret == -EISDIR || Not ret Then ret = 1
1278  If ret > 0 && Value for the false possibility is greater at compile time(d_flags_negative(flags)) Then ret = -ENOENT
1280  If Value for the false possibility is greater at compile time(ret < 0) Then path_put_conditional(path, nd)
1282  Return ret
Caller
NameDescribe
lookup_fast
walk_component
handle_lookup_down
do_lastHandle the last step of open()