函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:swevent_hlist_get

函数原型:static int swevent_hlist_get(void)

返回类型:int

参数:

8812  mutex_lock( & pmus_lock)
8813  遍历可用CPU(cpu)
8814  err等于swevent_hlist_get_cpu(cpu)
8815  如果err
8816  failed_cpu等于cpu
8817  转到:fail
8820  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.
8821  返回:0
8822  fail :
8823  遍历可用CPU(cpu)
8824  如果cpu恒等于failed_cpu退出
8826  swevent_hlist_put_cpu(cpu)
8828  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.
8829  返回:err
调用者
名称描述
perf_swevent_init