Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\quota.c Create Date:2022-07-28 20:33:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:quota_getxquota

Proto:static int quota_getxquota(struct super_block *sb, int type, qid_t id, void __user *addr)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
inttype
qid_tid
void __user *addr
628  If Not get_dqblk Then Return -ENOSYS
630  qid = make_kqid - Map a user-namespace, type, qid tuple into a kqid
631  If Not 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. Then Return -EINVAL
633  ret = get_dqblk(sb, qid, & qdq)
634  If ret Then Return ret
636  copy_to_xfs_dqblk( & fdq, & qdq, type, id)
637  If copy_to_user(addr, & fdq, size of fdq ) Then Return -EFAULT
639  Return ret
Caller
NameDescribe
do_quotactlCopy parameters and call proper function