函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Convert the hex array pointed to by buf into binary to be placed in* mem. Return a pointer to the character AFTER the last byte* written. May return an error.

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

返回类型:int

参数:

类型参数名称
char *buf
char *mem
intcount
277  tmp_raw等于bufcount乘2
279  tmp_hex等于tmp_raw减1
280 tmp_hex大于等于buf循环
281  tmp_raw自减
282  tmp_raw等于十六进制数字转换为实数
283  tmp_raw或等于十六进制数字转换为实数左移4位
286  返回:probe_kernel_write(): safely attempt to write to a location*@dst: address to write to*@src: pointer to the data that shall be written*@size: size of the data chunk* Safely write to address @dst from the buffer at @src. If a kernel fault
调用者
名称描述
write_mem_msgWrite memory due to an 'M' or 'X' packet.
gdb_cmd_setregsHandle the 'G' set registers request
gdb_cmd_queryHandle the 'q' query packets