Function report | 
Source Code:fs\namespace.c | 
Create Date:2022-07-28 20:09:14 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__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
Proto:void __detach_mounts(struct dentry *dentry)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct dentry * | dentry | 
| 1617 | namespace_lock() | 
| 1618 | lock_mount_hash() | 
| 1619 | mp = lookup_mountpoint(dentry) | 
| 1620 | If Not mp Then Go to out_unlock | 
| 1623 | event++ | 
| 1624 | When Not hlist_empty( & m_list) cycle | 
| 1625 | mnt = hlist_entry(first, structmount, mnt_mp_list) | 
| 1626 | If mnt_flags & MNT_UMOUNT Then | 
| 1628 | hlist_add_head( & mnt_umount, & unmounted) | 
| 1633 | out_unlock : | 
| 1634 | unlock_mount_hash() | 
| 1635 | namespace_unlock() | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |