Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\user.c Create Date:2022-07-28 09:14:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:uid_hash_find

Proto:static struct user_struct *uid_hash_find(kuid_t uid, struct hlist_head *hashent)

Type:struct user_struct

Parameter:

TypeParameterName
kuid_tuid
struct hlist_head *hashent
126  If uid_eq(uid, uid) Then
127  _inc - increment a refcount*@r: the refcount to increment* Similar to atomic_inc(), but will saturate at REFCOUNT_SATURATED and WARN
128  Return user
132  Return NULL
Caller
NameDescribe
find_userLocate the user_struct for the passed UID. If found, take a ref on it. The* caller must undo that ref with free_uid().* If the user_struct could not be found, return NULL.
alloc_uid