函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kdb_getword - Read a binary value. Unlike kdb_getarea, this treats* data as numbers.* 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_getword(unsigned long *word, unsigned long addr, size_t size)

返回类型:int

参数:

类型参数名称
unsigned long *word
unsigned longaddr
size_tsize
460  word等于0
462  :size恒等于1
463  diag等于Like get_user and put_user, kdb_getarea and kdb_putarea take variable* names, not pointers. The underlying *_size functions take pointers.(w1, addr)
464  如果非diagword等于w1
466  退出
467  :size恒等于2
468  diag等于Like get_user and put_user, kdb_getarea and kdb_putarea take variable* names, not pointers. The underlying *_size functions take pointers.(w2, addr)
469  如果非diagword等于w2
471  退出
472  :size恒等于4
473  diag等于Like get_user and put_user, kdb_getarea and kdb_putarea take variable* names, not pointers. The underlying *_size functions take pointers.(w4, addr)
474  如果非diagword等于w4
476  退出
477  :size恒等于8
478  如果size小于等于word的长度则
480  如果非diagword等于w8
482  退出
485  默认
486  diag等于KDB_BADWIDTH
487  kdb_printf("kdb_getword: bad width %ld\n", (long)size)
489  返回:diag
调用者
名称描述
kdb_md
kdb_per_cpukdb_per_cpu - This function implements the 'per_cpu' command.
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