Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:all under rcu_read_lock

Proto:int __legitimize_mnt(struct vfsmount *bastard, unsigned seq)

Type:int

Parameter:

TypeParameterName
struct vfsmount *bastard
unsignedseq
566  If read_seqretry( & vfsmount lock may be taken for read to prevent changes to the* vfsmount hash, ie. during mountpoint lookups or walking back* up the tree.* It should be taken for write in all cases where the vfsmount, seq) Then Return 1
568  If (bastard == NULL) Then Return 0
570  mnt = real_mount(bastard)
571  vfsmount lock must be held for read
572  smp_mb()
573  If Value is more likely to compile time(!read_seqretry( & vfsmount lock may be taken for read to prevent changes to the* vfsmount hash, ie. during mountpoint lookups or walking back* up the tree.* It should be taken for write in all cases where the vfsmount, seq)) Then Return 0
575  If mnt_flags & MNT_SYNC_UMOUNT Then
576  vfsmount lock must be held for read
577  Return 1
579  lock_mount_hash()
580  If Value for the false possibility is greater at compile time(mnt_flags & MNT_DOOMED) Then
581  vfsmount lock must be held for read
582  unlock_mount_hash()
583  Return 1
585  unlock_mount_hash()
587  Return -1
Caller
NameDescribe
legitimize_mntall under rcu_read_lock
legitimize_pathpath_put is needed afterwards regardless of success or failure