Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Is this module of this name done loading? No locks held.

Proto:static bool finished_loading(const char *name)

Type:bool

Parameter:

TypeParameterName
const char *name
3505  sched_annotate_sleep()
3506  mutex_lock( & Mutex protects:* 1) List of modules (also safely readable with preempt_disable),* 2) module_use links,* 3) module_addr_min/module_addr_max.* (delete and add uses RCU list operations). )
3507  mod = Search for module by name: must hold module_mutex (or preempt disabled* for read-only access).
3508  ret = Not mod || state == Normal state.
3509  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
3511  Return ret
Caller
NameDescribe
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.