函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Called from __cpuhp_setup_state on a recoverable failure.* Note: The teardown callbacks for rollback are not allowed to fail!

函数原型:static void cpuhp_rollback_install(int failedcpu, enum cpuhp_state state, struct hlist_node *node)

返回类型:void

参数:

类型参数名称
intfailedcpu
enum cpuhp_statestate
struct hlist_node *node
1661  遍历现有CPU(cpu)
1662  st等于per_cpu_ptr( & cpuhp_state, cpu)
1663  cpustate等于state
1665  如果cpu大于等于failedcpu退出
1669  如果cpustate大于等于stateCall the startup/teardown function for a step either on the AP or* on the current CPU.
调用者
名称描述
__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