函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pack_threadid

函数原型:static char *pack_threadid(char *pkt, unsigned char *id)

返回类型:char

参数:

类型参数名称
char *pkt
unsigned char *id
411  lzero等于1
413  limit等于idThread ID accessors. We represent a flat TID space to GDB, where* the per CPU idle threads (which under Linux all have PID 0) are* remapped to negative TIDs.除2
414 id小于limit循环
415  如果非lzeroid不等于0则
416  pkt等于hex_byte_pack(pkt, * id)
417  lzero等于0
419  id自加
422  如果lzeropkt等于hex_byte_pack(pkt, 0)
425  返回:pkt
调用者
名称描述
gdb_cmd_queryHandle the 'q' query packets
gdb_serial_stubThis function performs all gdbserial command procesing