Function report |
Source Code:arch\x86\kernel\process_32.c |
Create Date:2022-07-28 07:29:51 |
Last Modify:2022-05-18 16:43:57 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:switch_to(x,y) should switch tasks from x to y
Proto:__visible __notrace_funcgraph struct task_struct *__switch_to(struct task_struct *prev_p, struct task_struct *next_p)
Type:struct task_struct
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | prev_p | |
struct task_struct * | next_p |
166 | cpu = smp_processor_id() |
183 | lazy_save_gs(gs) |
205 | refresh_sysenter_cs(next) |
206 | this_cpu_write(cpu_current_top_of_stack, (unsignedlong)task_stack_page(next_p) + THREAD_SIZE) |
213 | If gs | gs Then lazy_load_gs(gs) |
216 | this_cpu_write(current_task, next_p) |
221 | resctrl_sched_in() |
223 | Return prev_p |
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 |