Function report |
Source Code:kernel\cpu.c |
Create Date:2022-07-28 09:00:49 |
Last Modify:2020-03-18 13:00:59 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static int cpuhp_invoke_callback(unsigned int cpu, enum cpuhp_state state, bool bringup, struct hlist_node *node, struct hlist_node **lastp)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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) |
158 | fail = CPUHP_INVALID |
163 | Return -EAGAIN |
166 | If Not multi_instance Then |
167 | WARN_ON_ONCE(lastp && * lastp) |
169 | If Not cb Then Return 0 |
171 | trace_cpuhp_enter(cpu, target, state, cb) |
173 | trace_cpuhp_exit(cpu, state, state, ret) |
174 | Return ret |
177 | If Not cbm Then Return 0 |
181 | If node Then |
190 | cnt = 0 |
197 | trace_cpuhp_exit(cpu, state, state, ret) |
198 | If ret Then |
205 | cnt++ |
209 | Return 0 |
210 | err : |
217 | If Not cnt -- Then Break |
222 | trace_cpuhp_exit(cpu, state, state, ret) |
226 | WARN_ON_ONCE(ret) |
228 | Return ret |
Name | Describe |
---|---|
cpuhp_issue_call | Call the startup/teardown function for a step either on the AP or* on the current CPU. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |