Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Call the startup/teardown function for a step either on the AP or* on the current CPU.

Proto:static int cpuhp_issue_call(int cpu, enum cpuhp_state state, bool bringup, struct hlist_node *node)

Type:int

Parameter:

TypeParameterName
intcpu
enum cpuhp_statestate
boolbringup
struct hlist_node *node
1624  sp = cpuhp_get_step(state)
1631  If bringup && Not single || Not bringup && Not single Then Return 0
1644  ret = puhp_invoke_callback _ Invoke the callbacks for a given state*@cpu: The cpu for which the callback should be invoked*@state: The state to do callbacks for*@bringup: True if the bringup callback should be invoked*@node: For multi-instance, do a single
1646  BUG_ON(ret && !bringup)
1647  Return ret
Caller
NameDescribe
cpuhp_rollback_installCalled from __cpuhp_setup_state on a recoverable failure.* Note: The teardown callbacks for rollback are not allowed to fail!
__cpuhp_state_add_instance_cpuslocked
__cpuhp_setup_state_cpuslocked__cpuhp_setup_state_cpuslocked - Setup the callbacks for an hotplug machine state*@state: The state to setup*@invoke: If true, the startup function is invoked for cpus where* cpu state >= @state*@startup: startup callback function*@teardown: teardown
__cpuhp_state_remove_instance
__cpuhp_remove_state_cpuslocked__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