函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cpuhp_store_callbacks

函数原型:static int cpuhp_store_callbacks(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu), bool multi_instance)

返回类型:int

参数:

类型参数名称
enum cpuhp_statestate
const char *name
int (*startup
int (*teardown
boolmulti_instance
1582  ret等于0
1593  如果namestate恒等于CPUHP_AP_ONLINE_DYNstate恒等于CPUHP_BP_PREPARE_DYN的值则
1595  ret等于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.
1596  如果ret小于0则返回:ret
1598  state等于ret
1600  sp等于cpuhp_get_step(state)
1601  如果namename则返回:负EBUSY
1604  single等于startup
1605  single等于teardown
1606  name等于name
1607  multi_instance等于multi_instance
1608  INIT_HLIST_HEAD( & list)
1609  返回:ret
调用者
名称描述
__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_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