Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_event_sysfs_init

Proto:static int __init perf_event_sysfs_init(void)

Type:int

Parameter:Nothing

12545  mutex_lock( & pmus_lock)
12547  ret = bus_register( & pmu_bus)
12548  If ret Then Go to unlock
12552  If Not name || type < 0 Then Continue
12555  ret = pmu_dev_alloc(pmu)
12556  WARN(ret, "Failed to register pmu: %s, reason %d\n", name, ret)
12558  pmu_bus_running = 1
12559  ret = 0
12561  unlock :
12562  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.
12564  Return ret