Skip to content

Commit

Permalink
module.h: Document klp_modinfo struct using kdoc
Browse files Browse the repository at this point in the history
Previously the documentation existed only in Documentation/livepatch
directory.

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
  • Loading branch information
Marcos Paulo de Souza authored and Luis Chamberlain committed Feb 6, 2023
1 parent fbed4fe commit eca0eda
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/linux/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,14 @@ struct mod_kallsyms {
};

#ifdef CONFIG_LIVEPATCH
/**
* struct klp_modinfo - Elf information preserved from the livepatch module
*
* @hdr: Elf header
* @sechdrs: Section header table
* @secstrings: String table for the section headers
* @symndx: The symbol table section index
*/
struct klp_modinfo {
Elf_Ehdr hdr;
Elf_Shdr *sechdrs;
Expand Down

0 comments on commit eca0eda

Please sign in to comment.