函数逻辑报告 |
Source Code:kernel\cpu.c |
Create Date:2022-07-27 10:00:25 |
Last Modify:2020-03-18 13:00:59 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:puhp_invoke_callback _ Invoke the callbacks for a given state*@cpu: The cpu for which the callback should be invoked*@state: The state to do callbacks for*@bringup: True if the bringup callback should be invoked*@node: For multi-instance, do a single
函数原型:static int cpuhp_invoke_callback(unsigned int cpu, enum cpuhp_state state, bool bringup, struct hlist_node *node, struct hlist_node **lastp)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned int | cpu | |
enum cpuhp_state | state | |
bool | bringup | |
struct hlist_node * | node | |
struct hlist_node ** | lastp |
151 | st等于per_cpu_ptr( & cpuhp_state, cpu) |
152 | step等于cpuhp_get_step(state) |
153 | int( * cbm)(unsigned int cpu, struct hlist_node * node) |
154 | int( * cb)(unsigned int cpu) |
166 | 如果非multi_instance则 |
167 | WARN_ON_ONCE(lastp && * lastp) |
169 | 如果非cb则返回:0 |
171 | trace_cpuhp_enter(cpu, target, state, cb) |
173 | trace_cpuhp_exit(cpu, state, state, ret) |
174 | 返回:ret |
177 | 如果非cbm则返回:0 |
181 | 如果node则 |
190 | cnt等于0 |
197 | trace_cpuhp_exit(cpu, state, state, ret) |
198 | 如果ret则 |
205 | cnt自加 |
209 | 返回:0 |
210 | err : |
222 | trace_cpuhp_exit(cpu, state, state, ret) |
226 | WARN_ON_ONCE(ret) |
228 | 返回:ret |
名称 | 描述 |
---|---|
cpuhp_issue_call | Call the startup/teardown function for a step either on the AP or* on the current CPU. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |