函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return quota for next active quota >= this id, if any exists,* otherwise return -ENOENT via ->get_nextdqblk

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

返回类型:int

参数:

类型参数名称
struct super_block *sb
inttype
qid_tid
void __user *addr
231  如果非get_nextdqblk则返回:负ENOSYS
233  qid等于make_kqid - Map a user-namespace, type, qid tuple into a kqid
234  如果非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
236  ret等于get_nextdqblk(sb, & qid, & fdq)
237  如果ret则返回:ret
240  copy_to_if_dqblk((structif_dqblk * ) & idq, & fdq)
241  dqb_id等于from_kqid(current_user_ns(), qid)
242  如果copy_to_user(addr, & idq, idq的长度)则返回:负EFAULT
244  返回:0
调用者
名称描述
do_quotactlCopy parameters and call proper function