Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static int kdb_mm(int argc, const char **argv)

Type:int

Parameter:

TypeParameterName
intargc
const char **argv
1754  offset = 0
1759  If argv[0][2] && Not isdigit(argv[0][2]) Then Return KDB return codes from a command or internal kdb function
1762  If argc < 2 Then Return 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  If diag Then Return diag
1770  If nextarg > argc Then Return 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  If diag Then Return diag
1776  If nextarg != argc + 1 Then Return KDB_ARGCOUNT
1779  width = If argv[0][2] Then argv[0][2] - '0' Else 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  If diag Then Return diag
1784  kdb_printf(kdb_machreg_fmt" = "kdb_machreg_fmt"\n", addr, contents)
1786  Return 0