函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vfsmount lock must be held for read

函数原型:static inline void mnt_add_count(struct mount *mnt, int n)

返回类型:void

参数:

类型参数名称
struct mount *mnt
intn
150  禁止抢占()
151  mnt_count加等于n
152  禁用抢占和中断()
调用者
名称描述
__legitimize_mntall under rcu_read_lock
mnt_set_mountpointvfsmount lock must be held for write
mnt_change_mountpoint
mntput_no_expire
mntget
umount_treemount_lock must be held* namespace_sem must be held for write
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