Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Search for module by name: must hold module_mutex (or preempt disabled* for read-only access).

Proto:static struct module *find_module_all(const char *name, size_t len, bool even_unformed)

Type:struct module

Parameter:

TypeParameterName
const char *name
size_tlen
booleven_unformed
619  module_assert_mutex_or_preempt()
623  If Not even_unformed && state == MODULE_STATE_UNFORMED Then Continue
625  If strlen - Find the length of a string*@s: The string to be sized == len && Not memcmp( Unique handle for this module , name, len) Then Return mod
628  Return NULL
Caller
NameDescribe
find_module
finished_loadingIs this module of this name done loading? No locks held.
add_unformed_moduleWe try to place it in the list now to make sure it's unique before* we dedicate too many resources. In particular, temporary percpu* memory exhaustion.