函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Convert the memory pointed to by mem into hex, placing result in* buf. Return a pointer to the last char put in buf (null). May* return an error.

函数原型:char *kgdb_mem2hex(char *mem, char *buf, int count)

返回类型:char

参数:

类型参数名称
char *mem
char *buf
intcount
248  tmp等于bufcount
250  err等于probe_kernel_read(): safely attempt to read from a location*@dst: pointer to the buffer that shall take the data*@src: address to read from*@size: size of the data chunk* Safely read from address @src to the buffer at @dst. If a kernel fault
251  如果err则返回:NULL
253 count大于0循环
254  buf等于hex_byte_pack(buf, * tmp)
255  tmp自加
256  count自减
258  buf等于0
260  返回:buf
调用者
名称描述
gdb_cmd_getregsHandle the 'g' get registers request
gdb_cmd_memreadHandle the 'm' memory read bytes
gdb_cmd_queryHandle the 'q' query packets