aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <mpdesouza@suse.com>2023-02-03 09:22:21 -0300
committerLuis Chamberlain <mcgrof@kernel.org>2023-02-06 08:45:55 -0800
commiteca0edaf6caa66b6eb26277a7dce5d7296cedfca (patch)
tree8480c0f36b17acc970b3b4fcdab35141a3f326e3 /include/linux/module.h
parentfbed4fea6422a237382bf317db88a37993955f3b (diff)
downloadlinux-eca0edaf6caa66b6eb26277a7dce5d7296cedfca.tar.gz
module.h: Document klp_modinfo struct using kdoc
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>
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 8c5909c0076c6e..6449ea59c0744d 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -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;