函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_event_sysfs_init

函数原型:static int __init perf_event_sysfs_init(void)

返回类型:int

参数:

12545  mutex_lock( & pmus_lock)
12547  ret等于bus_register( & pmu_bus)
12548  如果ret则转到:unlock
12552  如果非nametype小于0则继续下一循环
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  返回:ret