函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\super.c Create Date:2022-07-29 10:32:22
Last Modify:2022-05-24 06:42:17 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get_active_super - get an active reference to the superblock of a device*@bdev: device to get the superblock for* Scans the superblock list and finds the superblock of the file system* mounted on the device given. Returns the superblock with an active

函数原型:struct super_block *get_active_super(struct block_device *bdev)

返回类型:struct super_block

参数:

类型参数名称
struct block_device *bdev
851  如果非bdev则返回:NULL
854  restart :
855  加自旋锁
857  如果hlist_unhashed( & s_instances)则继续下一循环
859  如果s_bdev恒等于bdev
860  如果非grab_super - acquire an active reference*@s: reference we are trying to make active* Tries to acquire an active reference. grab_super() is used when we* had just found a superblock in super_blocks or fs_type->fs_supers则转到:restart
862  lease a write lock
863  返回:sb
866  自旋锁解锁
867  返回:NULL
调用者
名称描述
freeze_bdevze_bdev -- lock a filesystem and force it into a consistent state*@bdev: blockdevice to lock* If a superblock is found on this device, we take the s_umount semaphore* on it to make sure nobody unmounts until the snapshot creation is done