函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\quota.c Create Date:2022-07-29 11:10:15
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_getnextxquota(struct super_block *sb, int type, qid_t id, void __user *addr)

返回类型:int

参数:

类型参数名称
struct super_block *sb
inttype
qid_tid
void __user *addr
655  如果非get_nextdqblk则返回:负ENOSYS
657  qid等于make_kqid - Map a user-namespace, type, qid tuple into a kqid
658  如果非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
660  ret等于get_nextdqblk(sb, & qid, & qdq)
661  如果ret则返回:ret
663  id_out等于from_kqid(current_user_ns(), qid)
664  copy_to_xfs_dqblk( & fdq, & qdq, type, id_out)
665  如果copy_to_user(addr, & fdq, fdq的长度)则返回:负EFAULT
667  返回:ret
调用者
名称描述
do_quotactlCopy parameters and call proper function