函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\user.c Create Date:2022-07-27 10:13:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:alloc_uid

函数原型:struct user_struct *alloc_uid(kuid_t uid)

返回类型:struct user_struct

参数:

类型参数名称
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  如果非up
185  new等于Shortcuts
186  如果非new则返回: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  如果up
202  否则
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  返回:up