Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:klp_init_patch

Proto:static int klp_init_patch(struct klp_patch *patch)

Type:int

Parameter:

TypeParameterName
struct klp_patch *patch
869  ret = kobject_add() - The main kobject add function.*@kobj: the kobject to add*@parent: pointer to the parent of the kobject.*@fmt: format to name the kobject with.* The kobject name is set and added to the kobject hierarchy in this* function.
870  If ret Then Return ret
873  If replace Then
874  ret = Add 'nop' functions which simply return to the caller to run* the original function. The 'nop' functions are added to a* patch to facilitate a 'replace' mode.
875  If ret Then Return ret
879  klp_for_each_object(patch, obj)
880  ret = klp_init_object(patch, obj)
881  If ret Then Return ret
885  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
887  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,