函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:finish_automount

函数原型:int finish_automount(struct vfsmount *m, struct path *path)

返回类型:int

参数:

类型参数名称
struct vfsmount *m
struct path *path
2832  mnt等于real_mount(m)
2837  BUG_ON(vfsmount lock must be held for write < 2)
2839  如果 pointer to superblock 恒等于mnt_sb root of the mounted tree 恒等于dentry
2841  err等于负ELOOP
2842  转到:fail
2845  err等于add a mount into a namespace's mount tree
2846  如果非err则返回:0
2848  fail :
2850  如果非链表为空
2851  namespace_lock()
2852  删除链表项并重新初始化
2853  namespace_unlock()
2855  mntput(m)
2856  mntput(m)
2857  返回:err
调用者
名称描述
follow_automountPerform an automount* - return -EISDIR to tell follow_managed() to stop and return the path we* were called with.