函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__cpuhp_state_remove_instance

函数原型:int __cpuhp_state_remove_instance(enum cpuhp_state state, struct hlist_node *node, bool invoke)

返回类型:int

参数:

类型参数名称
enum cpuhp_statestate
struct hlist_node *node
boolinvoke
1826  sp等于cpuhp_get_step(state)
1829  BUG_ON(Sanity check for callbacks )
1831  如果非multi_instance则返回:负EINVAL
1834  cpus_read_lock()
1835  mutex_lock( & cpuhp_state_mutex)
1837  如果非invoke或非cpuhp_get_teardown_cb(state)则转到:remove
1844  遍历现有CPU(cpu)
1845  st等于per_cpu_ptr( & cpuhp_state, cpu)
1846  cpustate等于state
1848  如果cpustate大于等于stateCall the startup/teardown function for a step either on the AP or* on the current CPU.
1852  remove :
1853  hlist_del(node)
1854  mutex_unlock( & cpuhp_state_mutex)
1855  cpus_read_unlock()
1857  返回:0
调用者
名称描述
cpuhp_state_remove_instancepuhp_state_remove_instance - Remove hotplug instance from state and invoke* the teardown callback*@state: The state from which the instance is removed*@node: The node for this individual state
cpuhp_state_remove_instance_nocallspuhp_state_remove_instance_nocalls - Remove hotplug instance from state* without invoking the reatdown callback*@state: The state from which the instance is removed*@node: The node for this individual state.