Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\gdbstub.c Create Date:2022-07-28 11:38:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:char *kgdb_mem2hex(char *mem, char *buf, int count)

Type:char

Parameter:

TypeParameterName
char *mem
char *buf
intcount
248  tmp = buf + count
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  If err Then Return NULL
253  When count > 0 cycle
254  buf = hex_byte_pack(buf, * tmp)
255  tmp++
256  count--
258  buf = 0
260  Return buf
Caller
NameDescribe
gdb_cmd_getregsHandle the 'g' get registers request
gdb_cmd_memreadHandle the 'm' memory read bytes
gdb_cmd_queryHandle the 'q' query packets