Function report | 
Source Code:kernel\debug\kdb\kdb_support.c | 
Create Date:2022-07-28 11:43:13 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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.
Proto:int kdb_getword(unsigned long *word, unsigned long addr, size_t size)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned long * | word | |
| unsigned long | addr | |
| size_t | size | 
| 460 | word = 0 | 
| 462 | Case 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) | 
| 466 | Break | 
| 467 | Case 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) | 
| 471 | Break | 
| 472 | Case 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) | 
| 476 | Break | 
| 477 | Case size == 8 | 
| 485 | Default | 
| 486 | diag = KDB_BADWIDTH | 
| 487 | kdb_printf("kdb_getword: bad width %ld\n", (long)size) | 
| 489 | Return diag | 
| Name | Describe | 
|---|---|
| kdb_md | |
| kdb_per_cpu | kdb_per_cpu - This function implements the 'per_cpu' command. | 
| kdb_md_line | kdb_md - This function implements the 'md', 'md1', 'md2', 'md4',* 'md8' 'mdr' and 'mds' commands.* md|mds [ | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |