函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kallsyms.c Create Date:2022-07-27 12:00:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kallsyms_sym_address

函数原型:static unsigned long kallsyms_sym_address(int idx)

返回类型:unsigned long

参数:

类型参数名称
intidx
147  如果非IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_KALLSYMS_BASE_RELATIVE)则返回:These will be re-linked against their real values* during the second link stage.[idx]
151  如果非IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_KALLSYMS_ABSOLUTE_PERCPU)则返回:kallsyms_relative_basekallsyms_offsets[idx]
155  如果kallsyms_offsets[idx]大于等于0则返回:kallsyms_offsets[idx]
159  返回:kallsyms_relative_base减1减kallsyms_offsets[idx]
调用者
名称描述
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.