函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

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

返回类型:int

参数:

类型参数名称
unsigned longaddr
unsigned longword
size_tsize
510  :size恒等于1
511  w1等于word
512  diag等于kdb_putarea(addr, w1)
513  退出
514  :size恒等于2
515  w2等于word
516  diag等于kdb_putarea(addr, w2)
517  退出
518  :size恒等于4
519  w4等于word
520  diag等于kdb_putarea(addr, w4)
521  退出
522  :size恒等于8
523  如果size小于等于word的长度则
524  w8等于word
525  diag等于kdb_putarea(addr, w8)
526  退出
529  默认
530  diag等于KDB_BADWIDTH
531  kdb_printf("kdb_putword: bad width %ld\n", (long)size)
533  返回:diag
调用者
名称描述
kdb_mmkdb_mm - This function implements the 'mm' command.* mm address-expression new-value* Remarks:* mm works on machine words, mmW works on bytes.