Function report |
Source Code:kernel\livepatch\core.c |
Create Date:2022-07-28 10:30:38 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:parts of the initialization that is done only when the object is loaded
Proto:static int klp_init_object_loaded(struct klp_patch *patch, struct klp_object *obj)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct klp_patch * | patch | |
| struct klp_object * | obj |
| 742 | module_disable_ro(xternal ) |
| 743 | ret = klp_write_object_relocations(xternal , obj) |
| 744 | If ret Then |
| 745 | module_enable_ro(xternal , true) |
| 747 | Return ret |
| 751 | module_enable_ro(xternal , true) |
| 755 | klp_for_each_func(obj, func) |
| 756 | ret = klp_find_object_symbol( external , xternal , The old_sympos field is optional and can be used to resolve* duplicate symbol names in livepatch objects, (unsignedlong * ) & rnal ) |
| 762 | ret = kallsyms_lookup_size_offset((unsignedlong)rnal , & old_size, NULL) |
| 764 | If Not ret Then |
| 773 | ret = kallsyms_lookup_size_offset((unsignedlong)new_func, & new_size, NULL) |
| 775 | If Not ret Then |
| 782 | Return 0 |
| Name | Describe |
|---|---|
| klp_init_object | |
| klp_module_coming |
| 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 |