Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:core_kernel_text

Proto:int notrace core_kernel_text(unsigned long addr)

Type:int

Parameter:

TypeParameterName
unsigned longaddr
74  If addr >= Usage guidelines:* _text, _data: architecture specific, don't use them in arch-independent code* [_stext, _etext]: contains .text.* sections, may also contain .rodata.** and/or .init.* sections* [_sdata, _edata]: contains && addr < Usage guidelines:* _text, _data: architecture specific, don't use them in arch-independent code* [_stext, _etext]: contains .text.* sections, may also contain .rodata.** and/or .init.* sections* [_sdata, _edata]: contains Then Return 1
78  If Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE. < SYSTEM_RUNNING && init_kernel_text(addr) Then Return 1
81  Return 0
Caller
NameDescribe
kernel_text_address
func_ptr_is_kernel_textOn some architectures (PPC64, IA64) function pointers* are actually only tokens to some data that then holds the* real function address. As a result, to find if a function* pointer is part of the kernel text, we need to do some