Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kallsyms_sym_address

Proto:static unsigned long kallsyms_sym_address(int idx)

Type:unsigned long

Parameter:

TypeParameterName
intidx
147  If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_KALLSYMS_BASE_RELATIVE) Then Return These will be re-linked against their real values* during the second link stage.[idx]
151  If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_KALLSYMS_ABSOLUTE_PERCPU) Then Return kallsyms_relative_base + kallsyms_offsets[idx]
155  If kallsyms_offsets[idx] >= 0 Then Return kallsyms_offsets[idx]
159  Return kallsyms_relative_base - 1 - kallsyms_offsets[idx]
Caller
NameDescribe
kallsyms_lookup_nameLookup the address for this symbol. Returns 0 if not found.
kallsyms_on_each_symbol
get_symbol_pos
get_ksymbol_coreReturns space to next name.