函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

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

返回类型:int

参数:

类型参数名称
char *buf
char *mem
intcount
328  size等于0
329  c等于buf
331 count自减大于0循环
332  c[size]等于buf自加
333  如果c[size]恒等于0x7d则c[size]等于buf自加按位异或0x20
335  size自加
338  返回: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.