函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Call the startup/teardown function for a step either on the AP or* on the current CPU.

函数原型:static int cpuhp_issue_call(int cpu, enum cpuhp_state state, bool bringup, struct hlist_node *node)

返回类型:int

参数:

类型参数名称
intcpu
enum cpuhp_statestate
boolbringup
struct hlist_node *node
1624  sp等于cpuhp_get_step(state)
1631  如果bringup且非single或非bringup且非single则返回: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  返回:ret
调用者
名称描述
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