函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lock_mount

函数原型:static struct mountpoint *lock_mount(struct path *path)

返回类型:struct mountpoint

参数:

类型参数名称
struct path *path
2132  dentry等于dentry
2133  retry :
2134  inode_lock( Where the name belongs to - NULL is * negative )
2135  如果此条件成立可能性小(为编译器优化)(cant_mount(dentry))则
2136  inode_unlock( Where the name belongs to - NULL is * negative )
2137  返回:错误号
2139  namespace_lock()
2140  mnt等于lookup_mnt - Return the first child mount mounted at path* "First" means first mounted chronologically
2141  如果此条件成立可能性大(为编译器优化)(!mnt)则
2142  mp等于get_mountpoint(dentry)
2143  如果是错误
2144  namespace_unlock()
2146  返回:mp
2148  返回: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等于获得目录项引用
2155  转到:retry
调用者
名称描述
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