函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kdb_getphysword* Inputs:* word Pointer to the word to receive the result.* addr Address of the area to copy.* size Size of the area.* Returns:* 0 for success, < 0 for error.

函数原型:int kdb_getphysword(unsigned long *word, unsigned long addr, size_t size)

返回类型:int

参数:

类型参数名称
unsigned long *word
unsigned longaddr
size_tsize
410  word等于0
413  :size恒等于1
414  diag等于kdb_getphys - Read data from a physical address
415  如果非diagword等于w1
417  退出
418  :size恒等于2
419  diag等于kdb_getphys - Read data from a physical address
420  如果非diagword等于w2
422  退出
423  :size恒等于4
424  diag等于kdb_getphys - Read data from a physical address
425  如果非diagword等于w4
427  退出
428  :size恒等于8
429  如果size小于等于word的长度则
431  如果非diagword等于w8
433  退出
436  默认
437  diag等于KDB_BADWIDTH
438  kdb_printf("kdb_getphysword: bad width %ld\n", (long)size)
440  返回:diag
调用者
名称描述
kdb_md
kdb_md_linekdb_md - This function implements the 'md', 'md1', 'md2', 'md4',* 'md8' 'mdr' and 'mds' commands.* md|mds [ [ []]]* mdWcN [ [ []]]* where W = is the width (1, 2, 4 or 8) and N is the count.* for eg