Function report |
Source Code:kernel\livepatch\core.c |
Create Date:2022-07-28 10:30:49 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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,
Proto:int klp_enable_patch(struct klp_patch *patch)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct klp_patch * | patch |
| 997 | If Not is_livepatch_module(xternal ) Then |
| 998 | pr_err("module %s is not marked as a livepatch module\n", Unique handle for this module ) |
| 1000 | Return -EINVAL |
| 1003 | If Not klp_initialized() Then Return -ENODEV |
| 1006 | If Not klp_have_reliable_stack() Then |
| 1007 | pr_warn("This architecture doesn't have support for the livepatch consistency model.\n") |
| 1008 | pr_warn("The livepatch transition may never complete.\n") |
| 1013 | If Not klp_is_patch_compatible(patch) Then |
| 1014 | pr_err("Livepatch patch (%s) is not compatible with the already installed livepatches.\n", Unique handle for this module ) |
| 1017 | Return -EINVAL |
| 1020 | ret = klp_init_patch_early(patch) |
| 1021 | If ret Then |
| 1023 | Return ret |
| 1026 | ret = klp_init_patch(patch) |
| 1030 | ret = __klp_enable_patch(patch) |
| 1036 | Return 0 |
| 1038 | err : |
| 1045 | Return ret |
| Name | Describe |
|---|---|
| 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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |