Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:klp_module_coming

Proto:int klp_module_coming(struct module *mod)

Type:int

Parameter:

TypeParameterName
struct module *mod
1139  If WARN_ON(state != MODULE_STATE_COMING) Then Return -EINVAL
1142  mutex_lock( & klp_mutex is a coarse lock which serializes access to klp data)
1148  klp_alive = true
1150  klp_for_each_patch(patch)
1155  mod = mod
1158  If ret Then
1159  pr_warn("failed to initialize patch '%s' for module '%s' (%d)\n", Unique handle for this module , Unique handle for this module , ret)
1161  Go to err
1164  pr_notice("applying patch '%s' to loading module '%s'\n", Unique handle for this module , Unique handle for this module )
1168  If ret Then
1169  pr_warn("pre-patch callback failed for object '%s'\n", external )
1171  Go to err
1175  If ret Then
1176  pr_warn("failed to apply patch '%s' to module '%s' (%d)\n", Unique handle for this module , Unique handle for this module , ret)
1180  Go to err
1186  Break
1190  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.
1192  Return 0
1194  err :
1199  pr_warn("patch '%s' failed for module '%s', refusing to load module '%s'\n", Unique handle for this module , Unique handle for this module , Unique handle for this module )
1201  klp_alive = false
1202  mod = NULL
1203  Remove parts of patches that touch a given kernel module. The list of* patches processed might be limited. When limit is NULL, all patches* will be handled.
1204  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.
1206  Return ret
Caller
NameDescribe
prepare_coming_module