函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Returns a free for dynamic slot assignment of the Online state. The states* are protected by the cpuhp_slot_states mutex and an empty slot is identified* by having no name assigned.

函数原型:static int cpuhp_reserve_state(enum cpuhp_state state)

返回类型:int

参数:

类型参数名称
enum cpuhp_statestate
1555  :state恒等于CPUHP_AP_ONLINE_DYN
1556  step等于cpuhp_hp_statesCPUHP_AP_ONLINE_DYN
1557  end等于CPUHP_AP_ONLINE_DYN_END
1558  退出
1559  :state恒等于CPUHP_BP_PREPARE_DYN
1560  step等于cpuhp_hp_statesCPUHP_BP_PREPARE_DYN
1561  end等于CPUHP_BP_PREPARE_DYN_END
1562  退出
1563  默认
1564  返回:负EINVAL
1567 i小于等于end循环
1568  如果非name则返回:i
1571  WARN(1, "No more dynamic states available for CPU hotplug\n")
1572  返回:负ENOSPC
调用者
名称描述
cpuhp_store_callbacks