函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cpu.c Create Date:2022-07-27 10:00:37
Last Modify:2020-03-18 13:00:59 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__cpuhp_remove_state_cpuslocked - Remove the callbacks for an hotplug machine state*@state: The state to remove*@invoke: If true, the teardown function is invoked for cpus where* cpu state >= @state

函数原型:void __cpuhp_remove_state_cpuslocked(enum cpuhp_state state, bool invoke)

返回类型:void

参数:

类型参数名称
enum cpuhp_statestate
boolinvoke
1873  sp等于cpuhp_get_step(state)
1876  BUG_ON(Sanity check for callbacks )
1878  lockdep_assert_cpus_held()
1880  mutex_lock( & cpuhp_state_mutex)
1881  如果multi_instance
1882  WARN(!hlist_empty( & list), "Error: Removing state %d which has instances left.\n", state)
1885  转到:remove
1888  如果非invoke或非cpuhp_get_teardown_cb(state)则转到:remove
1896  遍历现有CPU(cpu)
1897  st等于per_cpu_ptr( & cpuhp_state, cpu)
1898  cpustate等于state
1900  如果cpustate大于等于stateCall the startup/teardown function for a step either on the AP or* on the current CPU.
1903  remove :
1904  cpuhp_store_callbacks(state, NULL, NULL, NULL, false)
1905  mutex_unlock( & cpuhp_state_mutex)
调用者
名称描述
__cpuhp_remove_state
cpuhp_remove_state_nocalls_cpuslocked