函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:quota_setquota

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

返回类型:int

参数:

类型参数名称
struct super_block *sb
inttype
qid_tid
void __user *addr
280  如果copy_from_user( & idq, addr, idq的长度)则返回:负EFAULT
282  如果非set_dqblk则返回:负ENOSYS
284  qid等于make_kqid - Map a user-namespace, type, qid tuple into a kqid
285  如果非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
287  copy_from_if_dqblk( & fdq, & idq)
288  返回:set_dqblk(sb, qid, & fdq)
调用者
名称描述
do_quotactlCopy parameters and call proper function