Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rate_supers_type - call function for superblocks of given type*@type: fs type*@f: function to call*@arg: argument to pass to it* Scans the superblock list and calls given function, passing it* locked superblock and given argument.

Proto:void iterate_supers_type(struct file_system_type *type, void (*f)(struct super_block *, void *), void *arg)

Type:void

Parameter:

TypeParameterName
struct file_system_type *type
void (*f
void *arg
719  struct super_block * sb, * p = NULL
721  spin_lock( & sb_lock)
723  s_count++
724  spin_unlock( & sb_lock)
726  lock for reading
727  If s_root && s_flags & SB_BORN Then f(sb, arg)
729  lease a read lock
731  spin_lock( & sb_lock)
732  If p Then Drop a superblock's refcount. The caller must hold sb_lock.
734  p = sb
736  If p Then Drop a superblock's refcount. The caller must hold sb_lock.
738  spin_unlock( & sb_lock)