Function report |
Source Code:kernel\livepatch\core.c |
Create Date:2022-07-28 10:30:17 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:klp_write_object_relocations
Proto:static int klp_write_object_relocations(struct module *pmod, struct klp_object *obj)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct module * | pmod | |
struct klp_object * | obj |
252 | ret = 0 |
257 | If WARN_ON(!klp_is_object_loaded(obj)) Then Return -EINVAL |
260 | objname = If klp_is_module(obj) Then external Else "vmlinux" |
265 | secname = secstrings + sh_name |
266 | If Not (sh_flags & SHF_RELA_LIVEPATCH) Then Continue |
274 | cnt = sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments |
275 | If cnt != 1 Then |
282 | If strcmp(objname, sec_objname) Then Continue |
285 | ret = klp_resolve_symbols(sec, pmod) |
286 | If ret Then Break |
292 | If ret Then Break |
296 | Return ret |
Name | Describe |
---|---|
klp_init_object_loaded | parts of the initialization that is done only when the object is loaded |
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 |