Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static int cpuhp_reserve_state(enum cpuhp_state state)

Type:int

Parameter:

TypeParameterName
enum cpuhp_statestate
1555  Case state == CPUHP_AP_ONLINE_DYN
1556  step = cpuhp_hp_states + CPUHP_AP_ONLINE_DYN
1557  end = CPUHP_AP_ONLINE_DYN_END
1558  Break
1559  Case state == CPUHP_BP_PREPARE_DYN
1560  step = cpuhp_hp_states + CPUHP_BP_PREPARE_DYN
1561  end = CPUHP_BP_PREPARE_DYN_END
1562  Break
1563  Default
1564  Return -EINVAL
1567  When i <= end cycle
1568  If Not name Then Return i
1571  WARN(1, "No more dynamic states available for CPU hotplug\n")
1572  Return -ENOSPC
Caller
NameDescribe
cpuhp_store_callbacks