函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:quota_setinfo

函数原型:static int quota_setinfo(struct super_block *sb, int type, void __user *addr)

返回类型:int

参数:

类型参数名称
struct super_block *sb
inttype
void __user *addr
148  如果copy_from_user( & info, addr, info的长度)则返回:负EFAULT
150  如果非set_info则返回:负ENOSYS
152  如果dqi_valid按位与IIF_FLAGS按位或Structure used for setting quota information about file via quotactl* Following flags are used to specify which fields are valid按位或IIF_IGRACE的值的反则返回:负EINVAL
154  memset( & qinfo, 0, qinfo的长度)
155  如果dqi_valid按位与IIF_FLAGS
156  如果 DFQ_* 按位与Mask for flags modifiable from userspace 的反则返回:负EINVAL
158  如果 DFQ_* 按位与Root squash enabled (for v1 quota format) Flags QCI_* 或等于Root squash turned on
160  mask of fields to change in ->set_info() 或等于QC_FLAGS
162  如果dqi_valid按位与Structure used for setting quota information about file via quotactl* Following flags are used to specify which fields are valid
163  Time after which space softlimit is* enforced 等于dqi_bgrace
164  mask of fields to change in ->set_info() 或等于QC_SPC_TIMER
166  如果dqi_valid按位与IIF_IGRACE
167  Ditto for inode softlimit 等于dqi_igrace
168  mask of fields to change in ->set_info() 或等于QC_INO_TIMER
170  返回:set_info(sb, type, & qinfo)
调用者
名称描述
do_quotactlCopy parameters and call proper function