函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\gdbstub.c Create Date:2022-07-27 12:42:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:getthread

函数原型:static struct task_struct *getthread(struct pt_regs *regs, int tid)

返回类型:struct task_struct

参数:

类型参数名称
struct pt_regs *regs
inttid
438  如果tid恒等于0或tid恒等于负1则tid等于负atomic_read( & The CPU# of the active CPU, or -1 if none:)减2
440  如果tid小于负1且tid大于负CPU数量减2则
441  如果task则返回:task
443  否则返回:dle_task - return the idle task for a given CPU.*@cpu: the processor in question.* Return: The idle task for the CPU @cpu.
446  如果tid小于等于0则
447  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
448  dump_stack()
449  返回:NULL
457  返回:Must be called under rcu_read_lock().
调用者
名称描述
gdb_cmd_queryHandle the 'q' query packets
gdb_cmd_taskHandle the 'H' task query packets
gdb_cmd_threadHandle the 'T' thread query packets