Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Given an address, look for it in the module exception tables.

Proto:const struct exception_table_entry *search_module_extables(unsigned long addr)

Type:struct exception_table_entry

Parameter:

TypeParameterName
unsigned longaddr
4418  const struct exception_table_entry * e = NULL
4421  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.()
4422  mod = __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.
4423  If Not mod Then Go to out
4426  If Not Exception table Then Go to out
4429  e = Search one exception table for an entry corresponding to the* given instruction address, and return the address of the entry,* or NULL if none is found.* We use a binary search, and thus we assume that the table is* already sorted.
4432  out :
4433  preempt_enable()
4439  Return e