Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:uid_cache_init

Proto:static int __init uid_cache_init(void)

Type:int

Parameter:Nothing

216  uid_cachep = kmem_cache_create("uid_cache", sizeof(structuser_struct), 0, Align objs on cache lines | Panic if kmem_cache_create() fails , NULL)
219  When n < UIDHASH_SZ cycle INIT_HLIST_HEAD(uidhash_table + n)
223  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)
224  These routines must be called with the uidhash spinlock held!
225  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)
227  Return 0