Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namespace.c Create Date:2022-07-28 20:09:09
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 read

Proto:static inline void mnt_add_count(struct mount *mnt, int n)

Type:void

Parameter:

TypeParameterName
struct mount *mnt
intn
150  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
151  mnt_count += n
152  preempt_enable()
Caller
NameDescribe
__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