Function report |
Source Code:kernel\smpboot.c |
Create Date:2022-07-28 09:33:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:smpboot_thread_fn - percpu hotplug thread loop function*@data: thread data pointer* Checks for thread stop and park conditions. Calls the necessary* setup, cleanup, park and unpark functions for the registered* thread.
Proto:static int smpboot_thread_fn(void *data)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
void * | data |
112 | When 1 cycle |
117 | preempt_enable() |
119 | If cleanup && status != HP_THREAD_NONE Then cleanup(cpu, cpu_online(cpu)) |
122 | Return 0 |
127 | preempt_enable() |
128 | If park && status == HP_THREAD_ACTIVE Then |
133 | kthread_parkme() |
135 | Continue |
138 | BUG_ON(cpu != smp_processor_id()) |
142 | Case status == HP_THREAD_NONE |
144 | preempt_enable() |
147 | status = HP_THREAD_ACTIVE |
148 | Continue |
150 | Case status == HP_THREAD_PARKED |
152 | preempt_enable() |
155 | status = HP_THREAD_ACTIVE |
156 | Continue |
159 | If Not thread_should_run(cpu) Then |
161 | schedule() |
162 | Else |
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 |