函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:klp_init_patch_early

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

返回类型:int

参数:

类型参数名称
struct klp_patch *patch
836  如果非objs则返回:负EINVAL
839  初始化链表头
840  初始化链表头
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  如果非funcs则返回:负EINVAL
851  klp_init_object_early(patch, obj)
854  klp_init_func_early(obj, func)
858  如果非判断模块是否处于活动状态则返回:负ENODEV
861  返回: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,