函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__detach_mounts - lazily unmount all mounts on the specified dentry* During unlink, rmdir, and d_drop it is possible to loose the path* to an existing mountpoint, and wind up leaking the mount

函数原型:void __detach_mounts(struct dentry *dentry)

返回类型:void

参数:

类型参数名称
struct dentry *dentry
1617  namespace_lock()
1618  lock_mount_hash()
1619  mp等于lookup_mountpoint(dentry)
1620  如果非mp则转到:out_unlock
1623  event自加
1624  当非hlist_empty( & m_list)循环
1625  mnt等于hlist_entry(first, structmount, mnt_mp_list)
1626  如果mnt_flags按位与MNT_UMOUNT
1630  否则mount_lock must be held* namespace_sem must be held for write
1632  alled with namespace_lock and vfsmount lock
1633  out_unlock :
1634  unlock_mount_hash()
1635  namespace_unlock()