Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:39:09
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:swevent_hlist_get

Proto:static int swevent_hlist_get(void)

Type:int

Parameter:Nothing

8812  mutex_lock( & pmus_lock)
8813  for_each_possible_cpu(cpu)
8814  err = swevent_hlist_get_cpu(cpu)
8815  If err Then
8816  failed_cpu = cpu
8817  Go to 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  Return 0
8822  fail :
8823  for_each_possible_cpu(cpu)
8824  If cpu == failed_cpu Then Break
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  Return err
Caller
NameDescribe
perf_swevent_init