函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Write memory due to an 'M' or 'X' packet.

函数原型:static int write_mem_msg(int binary)

返回类型:int

参数:

类型参数名称
intbinary
370  ptr等于Our I/O buffers. [1]
375  如果While we find nice hex chars, build a long_val.* Return number of chars processed.大于0且*ptr自加恒等于','且While we find nice hex chars, build a long_val.* Return number of chars processed.大于0且*ptr自加恒等于':'则
377  如果binaryerr等于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.
379  否则err等于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.
381  如果err则返回:err
383  如果CACHE_FLUSH_IS_SAFEflush_icache_range(addr, addr + length)
385  返回:0
388  返回:负EINVAL
调用者
名称描述
gdb_cmd_memwriteHandle the 'M' memory write bytes
gdb_cmd_binwriteHandle the 'X' memory binary write bytes