函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 14:59:07
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:swevent_hlist_get_cpu

函数原型:static int swevent_hlist_get_cpu(int cpu)

返回类型:int

参数:

类型参数名称
intcpu
8786  swhash等于per_cpu(swevent_htable, cpu)
8787  err等于0
8789  mutex_lock( & hlist_mutex)
8790  如果非Deref the hlist from the update side 测试CPU信息
8794  hlist等于分配内存并置零
8795  如果非hlist
8796  err等于负ENOMEM
8797  转到:exit
8799  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(swevent_hlist, hlist)
8801  hlist_refcount自加
8802  exit :
8803  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
8805  返回:err
调用者
名称描述
swevent_hlist_get