函数逻辑报告 | 
Source Code:kernel\cpu.c | 
Create Date:2022-07-27 10:00:34 | 
| Last Modify:2020-03-18 13:00:59 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:__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
函数原型:int __cpuhp_setup_state_cpuslocked(enum cpuhp_state state, const char *name, bool invoke, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu), bool multi_instance)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| enum cpuhp_state | state | |
| const char * | name | |
| bool | invoke | |
| int (* | startup | |
| int (* | teardown | |
| bool | multi_instance | 
| 1754 | ret等于0 | 
| 1757 | lockdep_assert_cpus_held() | 
| 1759 | 如果Sanity check for callbacks 或非name则返回:负EINVAL | 
| 1762 | mutex_lock( & cpuhp_state_mutex) | 
| 1764 | ret等于cpuhp_store_callbacks(state, name, startup, teardown, multi_instance) | 
| 1767 | dynstate等于state恒等于CPUHP_AP_ONLINE_DYN | 
| 1781 | st等于per_cpu_ptr( & cpuhp_state, cpu) | 
| 1788 | 如果ret则 | 
| 1795 | out : | 
| 1796 | mutex_unlock( & cpuhp_state_mutex) | 
| 1803 | 返回:ret | 
| 名称 | 描述 | 
|---|---|
| __cpuhp_setup_state | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |