summaryrefslogtreecommitdiffstats
path: root/kernel/module/internal.h
diff options
context:
space:
mode:
authorAaron Tomlin <atomlin@redhat.com>2022-03-22 14:03:41 +0000
committerLuis Chamberlain <mcgrof@kernel.org>2022-04-05 08:43:04 -0700
commit0ffc40f6c8ab684e694774ebc835b198398129a8 (patch)
tree91ed41765f16deb8d2b41ba6077b973a0f6a9b35 /kernel/module/internal.h
parent08126db5ff739fa011fc5b8af683ad759f2cba9a (diff)
downloadlinux-stable-0ffc40f6c8ab684e694774ebc835b198398129a8.tar.gz
linux-stable-0ffc40f6c8ab684e694774ebc835b198398129a8.tar.bz2
linux-stable-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.h1
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)
{