函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kdb_mm - This function implements the 'mm' command.* mm address-expression new-value* Remarks:* mm works on machine words, mmW works on bytes.

函数原型:static int kdb_mm(int argc, const char **argv)

返回类型:int

参数:

类型参数名称
intargc
const char **argv
1754  offset等于0
1759  如果argv[0][2]且非是数字则返回:KDB return codes from a command or internal kdb function
1762  如果argc小于2则返回:KDB_ARGCOUNT
1765  nextarg等于1
1766  diag等于kdbgetaddrarg - This function is responsible for parsing an* address-expression and returning the value of the expression,* symbol name, and offset to the caller
1767  如果diag则返回:diag
1770  如果nextarg大于argc则返回:KDB_ARGCOUNT
1772  diag等于kdbgetaddrarg - This function is responsible for parsing an* address-expression and returning the value of the expression,* symbol name, and offset to the caller
1773  如果diag则返回:diag
1776  如果nextarg不等于argc加1则返回:KDB_ARGCOUNT
1779  width等于如果argv[0][2]则argv[0][2]减'0'否则KDB_WORD_SIZE
1780  diag等于kdb_putword - Write a binary value. Unlike kdb_putarea, this* treats data as numbers.* Inputs:* addr Address of the area to write to..* word The value to set.* size Size of the area.* Returns:* 0 for success, < 0 for error.
1781  如果diag则返回:diag
1784  kdb_printf(kdb_machreg_fmt" = "kdb_machreg_fmt"\n", addr, contents)
1786  返回:0