Lines Matching +full:left +full:-
1 // SPDX-License-Identifier: GPL-2.0
7 * qid_eq - Test to see if to kquid values are the same
8 * @left: A qid value
13 bool qid_eq(struct kqid left, struct kqid right) in qid_eq() argument
15 if (left.type != right.type) in qid_eq()
17 switch(left.type) { in qid_eq()
19 return uid_eq(left.uid, right.uid); in qid_eq()
21 return gid_eq(left.gid, right.gid); in qid_eq()
23 return projid_eq(left.projid, right.projid); in qid_eq()
31 * qid_lt - Test to see if one qid value is less than another
32 * @left: The possibly lesser qid value
35 * Return true if left is less than right and false otherwise.
37 bool qid_lt(struct kqid left, struct kqid right) in qid_lt() argument
39 if (left.type < right.type) in qid_lt()
41 if (left.type > right.type) in qid_lt()
43 switch (left.type) { in qid_lt()
45 return uid_lt(left.uid, right.uid); in qid_lt()
47 return gid_lt(left.gid, right.gid); in qid_lt()
49 return projid_lt(left.projid, right.projid); in qid_lt()
57 * from_kqid - Create a qid from a kqid user-namespace pair.
61 * Map @kqid into the user-namespace specified by @targ and
66 * If @kqid has no mapping in @targ (qid_t)-1 is returned.
84 * from_kqid_munged - Create a qid from a kqid user-namespace pair.
88 * Map @kqid into the user-namespace specified by @targ and
117 * qid_valid - Report if a valid value is stored in a kqid.