函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:klp_init_patch

函数原型:static int klp_init_patch(struct klp_patch *patch)

返回类型:int

参数:

类型参数名称
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  如果ret则返回:ret
873  如果replace
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  如果ret则返回:ret
879  klp_for_each_object(patch, obj)
880  ret等于klp_init_object(patch, obj)
881  如果ret则返回:ret
885  添加链表项
887  返回:0
调用者
名称描述
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,