函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static struct module *find_module_all(const char *name, size_t len, bool even_unformed)

返回类型:struct module

参数:

类型参数名称
const char *name
size_tlen
booleven_unformed
619  module_assert_mutex_or_preempt()
623  如果非even_unformedstate恒等于MODULE_STATE_UNFORMED则继续下一循环
625  如果strlen - Find the length of a string*@s: The string to be sized恒等于len且非内存比较则返回:mod
628  返回:NULL
调用者
名称描述
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.