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:42:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kdbgetsymval - Return the address of the given symbol

Proto:int kdbgetsymval(const char *symname, kdb_symtab_t *symtab)

Type:int

Parameter:

TypeParameterName
const char *symname
kdb_symtab_t *symtab
42  If KDB_DEBUG(AR) Then kdb_printf("kdbgetsymval: symname=%s, symtab=%px\n", symname, symtab)
45  memset(symtab, 0, size of symtab )
46  sym_start = Lookup the address for this symbol. Returns 0 if not found.
47  If sym_start Then
48  If KDB_DEBUG(AR) Then kdb_printf("kdbgetsymval: returns 1, symtab->sym_start=0x%lx\n", sym_start)
52  Return 1
54  If KDB_DEBUG(AR) Then kdb_printf("kdbgetsymval: returns 0\n")
56  Return 0
Caller
NameDescribe
kdbgetaddrargkdbgetaddrarg - This function is responsible for parsing an* address-expression and returning the value of the expression,* symbol name, and offset to the caller