Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_uid

Proto:struct user_struct *alloc_uid(kuid_t uid)

Type:struct user_struct

Parameter:

TypeParameterName
kuid_tuid
177  hashent = uidhashentry(uid)
180  spin_lock_irq( & The uidhash_lock is mostly taken from process context, but it is* occasionally also taken from softirq/tasklet context, when* task-structs get RCU-freed)
181  up = uid_hash_find(uid, hashent)
182  spin_unlock_irq( & The uidhash_lock is mostly taken from process context, but it is* occasionally also taken from softirq/tasklet context, when* task-structs get RCU-freed)
184  If Not up Then
185  new = Shortcuts
186  If Not new Then Return NULL
189  uid = uid
190  _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
191  ratelimit_state_init( & Miscellaneous per-user rate limit , HZ, 100)
192  ratelimit_set_flags( & Miscellaneous per-user rate limit , ssue num suppressed message on exit )
198  spin_lock_irq( & The uidhash_lock is mostly taken from process context, but it is* occasionally also taken from softirq/tasklet context, when* task-structs get RCU-freed)
199  up = uid_hash_find(uid, hashent)
200  If up Then
202  Else
204  up = new
206  spin_unlock_irq( & The uidhash_lock is mostly taken from process context, but it is* occasionally also taken from softirq/tasklet context, when* task-structs get RCU-freed)
209  Return up