函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:all under rcu_read_lock

函数原型:int __legitimize_mnt(struct vfsmount *bastard, unsigned seq)

返回类型:int

参数:

类型参数名称
struct vfsmount *bastard
unsignedseq
566  如果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)则返回:1
568  如果(bastard == NULL)则返回:0
570  mnt等于real_mount(bastard)
571  vfsmount lock must be held for read
572  smp_mb()
573  如果此条件成立可能性大(为编译器优化)(!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))则返回:0
575  如果mnt_flags按位与MNT_SYNC_UMOUNT
576  vfsmount lock must be held for read
577  返回:1
579  lock_mount_hash()
580  如果此条件成立可能性小(为编译器优化)(mnt_flags & MNT_DOOMED)则
581  vfsmount lock must be held for read
582  unlock_mount_hash()
583  返回:1
585  unlock_mount_hash()
587  返回:负1
调用者
名称描述
legitimize_mntall under rcu_read_lock
legitimize_pathpath_put is needed afterwards regardless of success or failure