Function report |
Source Code:kernel\debug\gdbstub.c |
Create Date:2022-07-28 11:38:38 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:getthread
Proto:static struct task_struct *getthread(struct pt_regs *regs, int tid)
Type:struct task_struct
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct pt_regs * | regs | |
| int | tid |
| 438 | If tid == 0 || tid == -1 Then tid = -atomic_read( & The CPU# of the active CPU, or -1 if none:) - 2 |
| 440 | If tid < -1 && tid > -Places which use this should consider cpumask_var_t. - 2 Then |
| 446 | If tid <= 0 Then |
| 448 | dump_stack() |
| 449 | Return NULL |
| 457 | Return Must be called under rcu_read_lock(). |
| Name | Describe |
|---|---|
| gdb_cmd_query | Handle the 'q' query packets |
| gdb_cmd_task | Handle the 'H' task query packets |
| gdb_cmd_thread | Handle the 'T' thread query packets |
| 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 |