mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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>
This commit is contained in:
parent
eca0edaf6c
commit
f412eef039
1 changed files with 2 additions and 9 deletions
|
@ -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,
|
Since apply_relocate_add() requires access to a module's section headers,
|
||||||
symbol table, and relocation section indices, Elf information is preserved for
|
symbol table, and relocation section indices, Elf information is preserved for
|
||||||
livepatch modules and is made accessible by the module loader through
|
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,
|
module->klp_info, which is a :c:type:`klp_modinfo` struct. When a livepatch module
|
||||||
this struct is filled in by the module loader. Its fields are documented below::
|
loads, this struct is filled in by the module loader.
|
||||||
|
|
||||||
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 */
|
|
||||||
};
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue