函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__module_address - get the module which 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.

函数原型:struct module *__module_address(unsigned long addr)

返回类型:struct module

参数:

类型参数名称
unsigned longaddr
4471  如果addr小于module_addr_minaddr大于module_addr_max则返回:NULL
4474  module_assert_mutex_or_preempt()
4476  mod等于mod_find(addr)
4477  如果mod
4478  BUG_ON(!within_module(addr, mod))
4479  如果state恒等于 Still setting it up. mod = NULL
4482  返回:mod
调用者
名称描述
search_module_extablesGiven an address, look for it in the module exception tables.
is_module_addresss_module_address - is this address inside a module?*@addr: the address to check.* See is_module_text_address() if you simply want to see if the address* is code (not data).
__module_text_address__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.
bpf_put_raw_tracepoint
jump_label_add_module
jump_label_update
orc_module_find