Lines Matching defs:kqid
13 bool qid_eq(struct kqid left, struct kqid right)
37 bool qid_lt(struct kqid left, struct kqid right)
57 * from_kqid - Create a qid from a kqid user-namespace pair.
59 * @kqid: The kernel internal quota identifier to start with.
61 * Map @kqid into the user-namespace specified by @targ and
66 * If @kqid has no mapping in @targ (qid_t)-1 is returned.
68 qid_t from_kqid(struct user_namespace *targ, struct kqid kqid)
70 switch (kqid.type) {
72 return from_kuid(targ, kqid.uid);
74 return from_kgid(targ, kqid.gid);
76 return from_kprojid(targ, kqid.projid);
84 * from_kqid_munged - Create a qid from a kqid user-namespace pair.
86 * @kqid: The kernel internal quota identifier to start with.
88 * Map @kqid into the user-namespace specified by @targ and
98 * If @kqid has no mapping in @targ the kqid.type specific
101 qid_t from_kqid_munged(struct user_namespace *targ, struct kqid kqid)
103 switch (kqid.type) {
105 return from_kuid_munged(targ, kqid.uid);
107 return from_kgid_munged(targ, kqid.gid);
109 return from_kprojid_munged(targ, kqid.projid);
117 * qid_valid - Report if a valid value is stored in a kqid.
120 bool qid_valid(struct kqid qid)