Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:s_module_text_address - is this address inside module code?*@addr: the address to check.* See is_module_address() if you simply want to see if the address is* anywhere in a module. See kernel_text_address() for testing if an

Proto:bool is_module_text_address(unsigned long addr)

Type:bool

Parameter:

TypeParameterName
unsigned longaddr
4498  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
4499  ret = __module_text_address - get the module whose code contains an address.*@addr: the address.* Must be called with preempt disabled or module mutex held so that* module doesn't get freed during this. != NULL
4500  preempt_enable()
4502  Return ret
Caller
NameDescribe
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