Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\super.c Create Date:2022-07-28 20:02:27
Last Modify:2022-05-24 06:42:17 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:user_get_super

Proto:struct super_block *user_get_super(dev_t dev)

Type:struct super_block

Parameter:

TypeParameterName
dev_tdev
874  spin_lock( & sb_lock)
875  rescan :
877  If hlist_unhashed( & s_instances) Then Continue
879  If s_dev == dev Then
880  s_count++
881  spin_unlock( & sb_lock)
882  lock for reading
884  If s_root && s_flags & SB_BORN Then Return sb
886  lease a read lock
888  spin_lock( & sb_lock)
889  Drop a superblock's refcount. The caller must hold sb_lock.
890  Go to rescan
893  spin_unlock( & sb_lock)
894  Return NULL
Caller
NameDescribe
vfs_ustat