函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:klp_add_object_nops

函数原型:static int klp_add_object_nops(struct klp_patch *patch, struct klp_object *old_obj)

返回类型:int

参数:

类型参数名称
struct klp_patch *patch
struct klp_object *old_obj
488  obj等于klp_find_object(patch, old_obj)
490  如果非obj
491  obj等于klp_alloc_object_dynamic( external , patch)
492  如果非obj则返回:负ENOMEM
496  klp_for_each_func(old_obj, old_func)
497  func等于klp_find_func(obj, old_func)
498  如果func则继续下一循环
501  func等于klp_alloc_func_nop(old_func, obj)
502  如果非func则返回:负ENOMEM
506  返回:0
调用者
名称描述
klp_add_nopsAdd '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.