Lines Matching refs:uid
35 #define __uidhashfn(uid) (((uid >> UIDHASH_BITS) + uid) & UIDHASH_MASK) argument
36 #define uidhashentry(ns, uid) ((ns)->uidhash_table + __uidhashfn((uid))) argument
78 static struct user_struct *uid_hash_find(uid_t uid, struct hlist_head *hashent) in uid_hash_find() argument
84 if (user->uid == uid) { in uid_hash_find()
261 error = kobject_init_and_add(kobj, &uids_ktype, NULL, "%d", up->uid); in uids_user_create()
389 struct user_struct *find_user(uid_t uid) in find_user() argument
396 ret = uid_hash_find(uid, uidhashentry(ns, uid)); in find_user()
415 struct user_struct *alloc_uid(struct user_namespace *ns, uid_t uid) in alloc_uid() argument
417 struct hlist_head *hashent = uidhashentry(ns, uid); in alloc_uid()
426 up = uid_hash_find(uid, hashent); in alloc_uid()
434 new->uid = uid; in alloc_uid()
450 up = uid_hash_find(uid, hashent); in alloc_uid()