Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\quota.h Create Date:2022-07-28 05:42:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:make_kqid - Map a user-namespace, type, qid tuple into a kqid

Proto:static inline struct kqid make_kqid(struct user_namespace *from, enum quota_type type, qid_t qid)

Type:struct kqid

Parameter:

TypeParameterName
struct user_namespace *from
enum quota_typetype
qid_tqid
102  USRQUOTA (uid) or GRPQUOTA (gid) or PRJQUOTA (projid) = type
104  Case type == element used for user quotas
105  uid = make_kuid(from, qid)
106  Break
107  Case type == element used for group quotas
108  gid = make_kgid(from, qid)
109  Break
110  Case type == element used for project quotas
111  projid = make_kprojid(from, qid)
112  Break
113  Default
114  BUG()
116  Return kqid
Caller
NameDescribe
v2r0_is_id
v2r1_is_id
qtree_get_next_id
quota_getquota
quota_getnextquotaReturn quota for next active quota >= this id, if any exists,* otherwise return -ENOENT via ->get_nextdqblk
quota_setquota
quota_setxquota
quota_getxquota
quota_getnextxquotaReturn quota for next active quota >= this id, if any exists,* otherwise return -ENOENT via ->get_nextdqblk.