函数逻辑报告 |
Source Code:kernel\cpu.c |
Create Date:2022-07-27 10:00:37 |
Last Modify:2020-03-18 13:00:59 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__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
函数原型:void __cpuhp_remove_state_cpuslocked(enum cpuhp_state state, bool invoke)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
enum cpuhp_state | state | |
bool | invoke |
1873 | sp等于cpuhp_get_step(state) |
1876 | BUG_ON(Sanity check for callbacks ) |
1878 | lockdep_assert_cpus_held() |
1880 | mutex_lock( & cpuhp_state_mutex) |
1881 | 如果multi_instance则 |
1882 | WARN(!hlist_empty( & list), "Error: Removing state %d which has instances left.\n", state) |
1885 | 转到:remove |
1888 | 如果非invoke或非cpuhp_get_teardown_cb(state)则转到:remove |
1897 | st等于per_cpu_ptr( & cpuhp_state, cpu) |
1903 | remove : |
1904 | cpuhp_store_callbacks(state, NULL, NULL, NULL, false) |
1905 | mutex_unlock( & cpuhp_state_mutex) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |