Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Copy the binary array pointed to by buf into mem. Fix $, #, and* 0x7d escaped with 0x7d. Return -EFAULT on failure or 0 on success.* The input buf is overwitten with the result to write to mem.

Proto:static int kgdb_ebin2mem(char *buf, char *mem, int count)

Type:int

Parameter:

TypeParameterName
char *buf
char *mem
intcount
328  size = 0
329  c = buf
331  When count-- > 0 cycle
332  c[size] = buf++
333  If c[size] == 0x7d Then c[size] = buf++ ^ 0x20
335  size++
338  Return 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
Caller
NameDescribe
write_mem_msgWrite memory due to an 'M' or 'X' packet.