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:Perform an automount* - return -EISDIR to tell follow_managed() to stop and return the path we* were called with.

Proto:static int follow_automount(struct path *path, struct nameidata *nd, bool *need_mntput)

Type:int

Parameter:

TypeParameterName
struct path *path
struct nameidata *nd
bool *need_mntput
1143  If Not d_op || Not d_automount Then Return -EREMOTE
1157  If Not (flags & ( rnal use only | quire a directory | ... in open | ... in object creation | rce terminal automount )) && Where the name belongs to - NULL is * negative Then Return -EISDIR
1162  total_link_count++
1163  If total_link_count >= 40 Then Return -ELOOP
1166  mnt = d_automount(path)
1167  If IS_ERR(mnt) Then
1177  If PTR_ERR(mnt) == -EISDIR && flags & rnal use only Then Return -EREMOTE
1179  Return PTR_ERR(mnt)
1182  If Not mnt Then Return 0
1185  If Not need_mntput Then
1187  mntget(mnt)
1188  * need_mntput = true
1190  err = finish_automount(mnt, path)
1193  Case err == -EBUSY
1195  Return 0
1196  Case err == 0
1197  path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
1198  mnt = mnt
1199  dentry = get a reference to a dentry
1200  Return 0
1201  Default
1202  Return err
Caller
NameDescribe
follow_managedHandle 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.