Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:klp_init_patch_early

Proto:static int klp_init_patch_early(struct klp_patch *patch)

Type:int

Parameter:

TypeParameterName
struct klp_patch *patch
836  If Not objs Then Return -EINVAL
839  Initialization list head
840  Initialization list head
841  kobject_init() - Initialize a kobject structure
842  enabled = false
843  forced = false
844  INIT_WORK( & free_work, The livepatch might be freed from sysfs interface created by the patch.* This work allows to wait until the interface is destroyed in a separate* context.)
845  init_completion( & finish)
848  If Not funcs Then Return -EINVAL
851  klp_init_object_early(patch, obj)
854  klp_init_func_early(obj, func)
858  If Not try_module_get(xternal ) Then Return -ENODEV
861  Return 0
Caller
NameDescribe
klp_enable_patchklp_enable_patch() - enable the livepatch*@patch: patch to be enabled* Initializes the data structure associated with the patch, creates the sysfs* interface, performs the needed symbol lookups and code relocations,