函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:look up a superblock on which quota ops will be performed* - use the name of a block device to find the superblock thereon

函数原型:static struct super_block *quotactl_block(const char __user *special, int cmd)

返回类型:struct super_block

参数:

类型参数名称
const char __user *special
intcmd
789  tmp等于getname(special)
791  如果是错误则返回:错误指示
793  bdev等于lookup_bdev - lookup a struct block_device by name*@pathname: special file representing the block device* Get a reference to the blockdevice at @pathname in the current* namespace if possible and return it. Return ERR_PTR(error)* otherwise.
794  putname(tmp)
795  如果是错误则返回:错误指示
797  如果Return true if quotactl command is manipulating quota on/off state sb等于get_super_exclusive_thawed - get thawed 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
799  否则如果Return 1 if 'cmd' will block on frozen filesystem sb等于get_super_thawed - get thawed 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. The superblock is returned once it is thawed
801  否则sb等于获得驱动块
803  bdput(bdev)
804  如果非sb则返回:错误号
807  返回:sb
调用者
名称描述
kernel_quotactlThis is the system call interface. This communicates with* the user-level programs. Currently this only supports diskquota* calls. Maybe we need to add the process quotas etc. in the future,* but we probably should use rlimits for that.