函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:quota_getquota

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

返回类型:int

参数:

类型参数名称
struct super_block *sb
inttype
qid_tid
void __user *addr
205  如果非get_dqblk则返回:负ENOSYS
207  qid等于make_kqid - Map a user-namespace, type, qid tuple into a kqid
208  如果非qid_has_mapping - Report if a qid maps into a user namespace.*@ns: The user namespace to see if a value maps into.*@qid: The kernel internal quota identifier to test.则返回:负EINVAL
210  ret等于get_dqblk(sb, qid, & fdq)
211  如果ret则返回:ret
213  copy_to_if_dqblk( & idq, & fdq)
214  如果copy_to_user(addr, & idq, idq的长度)则返回:负EFAULT
216  返回:0
调用者
名称描述
do_quotactlCopy parameters and call proper function