Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lookup_symbol_attrs

Proto:int lookup_symbol_attrs(unsigned long addr, unsigned long *size, unsigned long *offset, char *modname, char *name)

Type:int

Parameter:

TypeParameterName
unsigned longaddr
unsigned long *size
unsigned long *offset
char *modname
char *name
337  name[0] = '\0'
338  name[KSYM_NAME_LEN - 1] = '\0'
340  If is_ksym_addr(addr) Then
343  pos = get_symbol_pos(addr, size, offset)
345  Expand a compressed symbol data into the resulting uncompressed string,* if uncompressed string is too long (>= maxlen), it will be truncated,* given the offset to where the symbol is in the compressed stream.
347  modname[0] = '\0'
348  Return 0
351  Return lookup_module_symbol_attrs(addr, size, offset, modname, name)