diff options
author | Aaron Tomlin <atomlin@redhat.com> | 2022-03-22 15:03:41 +0100 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2022-04-05 17:43:04 +0200 |
commit | 0ffc40f6c8ab684e694774ebc835b198398129a8 (patch) | |
tree | 91ed41765f16deb8d2b41ba6077b973a0f6a9b35 /kernel/module/internal.h | |
parent | module: kallsyms: Fix suspicious rcu usage (diff) | |
download | linux-0ffc40f6c8ab684e694774ebc835b198398129a8.tar.xz linux-0ffc40f6c8ab684e694774ebc835b198398129a8.zip |
module: Move procfs support into a separate file
No functional change.
This patch migrates code that allows one to generate a
list of loaded/or linked modules via /proc when procfs
support is enabled into kernel/module/procfs.c.
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/module/internal.h')
-rw-r--r-- | kernel/module/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/module/internal.h b/kernel/module/internal.h index 44ca05b9eb8f..6af40c2d145f 100644 --- a/kernel/module/internal.h +++ b/kernel/module/internal.h @@ -72,6 +72,7 @@ struct module *find_module_all(const char *name, size_t len, bool even_unformed) int cmp_name(const void *name, const void *sym); long module_get_offset(struct module *mod, unsigned int *size, Elf_Shdr *sechdr, unsigned int section); +char *module_flags(struct module *mod, char *buf); static inline unsigned long kernel_symbol_value(const struct kernel_symbol *sym) { |