Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namespace.c Create Date:2022-07-28 20:09:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:vfsmount lock must be held for write

Proto:static struct mountpoint *unhash_mnt(struct mount *mnt)

Type:struct mountpoint

Parameter:

TypeParameterName
struct mount *mnt
807  mnt_parent = mnt
808  mnt_mountpoint = root of the mounted tree
809  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
810  hlist_del_init_rcu - deletes entry from hash list with re-initialization*@n: the element to delete from the hash list.* Note: list_unhashed() on the node return true after this. It is* useful for RCU based read lockfree traversal if the writer side
811  hlist_del_init( & list mounts with the same mountpoint )
812  mp = where is it mounted
813  where is it mounted = NULL
814  Return mp
Caller
NameDescribe
umount_mntvfsmount lock must be held for write
mntput_no_expire
attach_recursive_mnt@source_mnt : mount tree to be attached*@nd : place the mount tree @source_mnt is attached*@parent_nd : if non-null, detach the source_mnt from its parent and* store the parent mount and mountpoint dentry
SYSCALL_DEFINE2pivot_root Semantics:* Moves the root file system of the current process to the directory put_old,* makes new_root as the new root file system of the current process, and sets* root/cwd of all processes which had them on the current root to new_root