Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__symbol_get

Proto:void *__symbol_get(const char *symbol)

Type:void

Parameter:

TypeParameterName
const char *symbol
2246  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.()
2247  sym = Find an exported symbol and return it, along with, (optional) crc and* (optional) module which owns it. Needs preempt disabled or module_mutex.
2248  If sym && We require a truly strong try_module_get(): 0 means success.* Otherwise an error is returned due to ongoing or failed* initialization etc. Then sym = NULL
2250  preempt_enable()
2252  Return sym ? kernel_symbol_value(sym) : NULL