函数逻辑报告 |
Source Code:kernel\livepatch\core.c |
Create Date:2022-07-27 11:30:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:klp_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,
函数原型:int klp_enable_patch(struct klp_patch *patch)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct klp_patch * | patch |
997 | 如果非is_livepatch_module(xternal )则 |
998 | 打印错误信息("module %s is not marked as a livepatch module\n", Unique handle for this module ) |
1000 | 返回:负EINVAL |
1003 | 如果非klp_initialized()则返回:负ENODEV |
1006 | 如果非klp_have_reliable_stack()则 |
1007 | 打印警告信息("This architecture doesn't have support for the livepatch consistency model.\n") |
1008 | 打印警告信息("The livepatch transition may never complete.\n") |
1013 | 如果非klp_is_patch_compatible(patch)则 |
1014 | 打印错误信息("Livepatch patch (%s) is not compatible with the already installed livepatches.\n", Unique handle for this module ) |
1017 | 返回:负EINVAL |
1020 | ret等于klp_init_patch_early(patch) |
1021 | 如果ret则 |
1023 | 返回:ret |
1026 | ret等于klp_init_patch(patch) |
1030 | ret等于__klp_enable_patch(patch) |
1036 | 返回:0 |
1038 | err : |
1045 | 返回:ret |
名称 | 描述 |
---|---|
test_klp_callbacks_demo_init | |
test_klp_callbacks_demo2_init | |
test_klp_livepatch_init | |
test_klp_callbacks_demo_init | |
test_klp_callbacks_demo_init | |
test_klp_atomic_replace_init |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |