Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:int kdb_putword(unsigned long addr, unsigned long word, size_t size)

Type:int

Parameter:

TypeParameterName
unsigned longaddr
unsigned longword
size_tsize
510  Case size == 1
511  w1 = word
512  diag = kdb_putarea(addr, w1)
513  Break
514  Case size == 2
515  w2 = word
516  diag = kdb_putarea(addr, w2)
517  Break
518  Case size == 4
519  w4 = word
520  diag = kdb_putarea(addr, w4)
521  Break
522  Case size == 8
523  If size <= size of word Then
524  w8 = word
525  diag = kdb_putarea(addr, w8)
526  Break
529  Default
530  diag = KDB_BADWIDTH
531  kdb_printf("kdb_putword: bad width %ld\n", (long)size)
533  Return diag
Caller
NameDescribe
kdb_mmkdb_mm - This function implements the 'mm' command.* mm address-expression new-value* Remarks:* mm works on machine words, mmW works on bytes.