Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cpu.c Create Date:2022-07-28 09:01:00
Last Modify:2020-03-18 13:00:59 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__cpuhp_state_remove_instance

Proto:int __cpuhp_state_remove_instance(enum cpuhp_state state, struct hlist_node *node, bool invoke)

Type:int

Parameter:

TypeParameterName
enum cpuhp_statestate
struct hlist_node *node
boolinvoke
1826  sp = cpuhp_get_step(state)
1829  BUG_ON(Sanity check for callbacks )
1831  If Not multi_instance Then Return -EINVAL
1834  cpus_read_lock()
1835  mutex_lock( & cpuhp_state_mutex)
1837  If Not invoke || Not cpuhp_get_teardown_cb(state) Then Go to remove
1844  for_each_present_cpu(cpu)
1845  st = per_cpu_ptr( & cpuhp_state, cpu)
1846  cpustate = state
1848  If cpustate >= state Then Call 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  Return 0
Caller
NameDescribe
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.