diff options
author | Marcos Paulo de Souza <mpdesouza@suse.com> | 2023-02-03 09:22:22 -0300 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2023-02-06 08:45:55 -0800 |
commit | f412eef03938d3a40d4f6f5a79d0f98ed89b596d (patch) | |
tree | dc2daadbc9c4cb8cea9c58245d0348396e0e0a6d /Documentation/livepatch | |
parent | eca0edaf6caa66b6eb26277a7dce5d7296cedfca (diff) |
Documentation: livepatch: module-elf-format: Remove local klp_modinfo definition
Refer to klp_modinfo declaration using kdoc.
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'Documentation/livepatch')
-rw-r--r-- | Documentation/livepatch/module-elf-format.rst | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Documentation/livepatch/module-elf-format.rst b/Documentation/livepatch/module-elf-format.rst index 7347638895a0..d48f530c0881 100644 --- a/Documentation/livepatch/module-elf-format.rst +++ b/Documentation/livepatch/module-elf-format.rst @@ -298,12 +298,5 @@ A livepatch module's symbol table is accessible through module->symtab. Since apply_relocate_add() requires access to a module's section headers, symbol table, and relocation section indices, Elf information is preserved for livepatch modules and is made accessible by the module loader through -module->klp_info, which is a klp_modinfo struct. When a livepatch module loads, -this struct is filled in by the module loader. Its fields are documented below:: - - struct klp_modinfo { - Elf_Ehdr hdr; /* Elf header */ - Elf_Shdr *sechdrs; /* Section header table */ - char *secstrings; /* String table for the section headers */ - unsigned int symndx; /* The symbol table section index */ - }; +module->klp_info, which is a :c:type:`klp_modinfo` struct. When a livepatch module +loads, this struct is filled in by the module loader. |