Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lock_mount

Proto:static struct mountpoint *lock_mount(struct path *path)

Type:struct mountpoint

Parameter:

TypeParameterName
struct path *path
2132  dentry = dentry
2133  retry :
2134  inode_lock( Where the name belongs to - NULL is * negative )
2135  If Value for the false possibility is greater at compile time(cant_mount(dentry)) Then
2136  inode_unlock( Where the name belongs to - NULL is * negative )
2137  Return ERR_PTR( - ENOENT)
2139  namespace_lock()
2140  mnt = lookup_mnt - Return the first child mount mounted at path* "First" means first mounted chronologically
2141  If Value is more likely to compile time(!mnt) Then
2142  mp = get_mountpoint(dentry)
2143  If IS_ERR(mp) Then
2144  namespace_unlock()
2146  Return mp
2148  Return mp
2150  namespace_unlock()
2151  inode_unlock( Where the name belongs to - NULL is * negative )
2152  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.
2153  mnt = mnt
2154  dentry = dentry = get a reference to a dentry
2155  Go to retry
Caller
NameDescribe
do_loopbackdo loopback mount.
do_move_mount
do_add_mountadd a mount into a namespace's mount tree
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