Lines Matching full:uid
74 * UID task count cache, to get fast user lookup in "alloc_uid"
81 #define __uidhashfn(uid) (((uid >> UIDHASH_BITS) + uid) & UIDHASH_MASK) argument
82 #define uidhashentry(uid) (uidhash_table + __uidhashfn((__kuid_val(uid)))) argument
101 .uid = GLOBAL_ROOT_UID,
118 static struct user_struct *uid_hash_find(kuid_t uid, struct hlist_head *hashent) in uid_hash_find() argument
123 if (uid_eq(user->uid, uid)) { in uid_hash_find()
162 * Locate the user_struct for the passed UID. If found, take a ref on it. The
167 struct user_struct *find_user(kuid_t uid) in find_user() argument
173 ret = uid_hash_find(uid, uidhashentry(uid)); in find_user()
190 struct user_struct *alloc_uid(kuid_t uid) in alloc_uid() argument
192 struct hlist_head *hashent = uidhashentry(uid); in alloc_uid()
196 up = uid_hash_find(uid, hashent); in alloc_uid()
204 new->uid = uid; in alloc_uid()
218 up = uid_hash_find(uid, hashent); in alloc_uid()