函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Perform an automount* - return -EISDIR to tell follow_managed() to stop and return the path we* were called with.

函数原型:static int follow_automount(struct path *path, struct nameidata *nd, bool *need_mntput)

返回类型:int

参数:

类型参数名称
struct path *path
struct nameidata *nd
bool *need_mntput
1143  如果非d_op或非d_automount则返回:负EREMOTE
1157  如果非flags按位与rnal use only 按位或quire a directory 按位或... in open 按位或... in object creation 按位或rce terminal automount 的值的值且 Where the name belongs to - NULL is * negative 则返回:负EISDIR
1162  total_link_count自加
1163  如果total_link_count大于等于40则返回:负ELOOP
1166  mnt等于d_automount(path)
1167  如果是错误
1177  如果错误恒等于负EISDIRflags按位与rnal use only 则返回:负EREMOTE
1179  返回:错误
1182  如果非mnt则返回:0
1185  如果非need_mntput
1187  mntget(mnt)
1188  * need_mntput = true
1190  err等于finish_automount(mnt, path)
1193  :err恒等于负EBUSY
1195  返回:0
1196  :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等于获得目录项引用
1200  返回:0
1201  默认
1202  返回:err
调用者
名称描述
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.