Lines Matching refs:uid
34 #define __uidhashfn(uid) (((uid >> UIDHASH_BITS) + uid) & UIDHASH_MASK)
35 #define uidhashentry(ns, uid) ((ns)->uidhash_table + __uidhashfn((uid)))
74 static struct user_struct *uid_hash_find(uid_t uid, struct hlist_head *hashent)
80 if (user->uid == uid) {
108 struct user_struct *find_user(uid_t uid)
115 ret = uid_hash_find(uid, uidhashentry(ns, uid));
134 struct user_struct *alloc_uid(struct user_namespace *ns, uid_t uid)
136 struct hlist_head *hashent = uidhashentry(ns, uid);
140 up = uid_hash_find(uid, hashent);
148 new->uid = uid;
158 up = uid_hash_find(uid, hashent);