diff options
| author | Ingo Molnar <mingo@kernel.org> | 2025-04-11 11:13:27 +0200 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2025-04-11 11:13:27 +0200 |
| commit | 9f13acb2406a3aed90c6738b3a2f1c0e43118cbd (patch) | |
| tree | cf37d241e85bf8fea4d13cb8d64ad6602c745b72 /include/linux/module.h | |
| parent | d02c83d75f9f76dda046edbd9f39b911427677c9 (diff) | |
| parent | 0af2f6be1b4281385b618cb86ad946eded089ac8 (diff) | |
Merge tag 'v6.15-rc1' into x86/cpu, to refresh the branch with upstream changes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/module.h')
| -rw-r--r-- | include/linux/module.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 9937e71a3b5b..d94b196d5a34 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -665,7 +665,7 @@ static inline bool within_module(unsigned long addr, const struct module *mod) return within_module_init(addr, mod) || within_module_core(addr, mod); } -/* Search for module by name: must be in a RCU-sched critical section. */ +/* Search for module by name: must be in a RCU critical section. */ struct module *find_module(const char *name); extern void __noreturn __module_put_and_kthread_exit(struct module *mod, @@ -771,6 +771,8 @@ static inline bool is_livepatch_module(struct module *mod) void set_module_sig_enforced(void); +void module_for_each_mod(int(*func)(struct module *mod, void *data), void *data); + #else /* !CONFIG_MODULES... */ static inline struct module *__module_address(unsigned long addr) @@ -878,6 +880,10 @@ static inline bool module_is_coming(struct module *mod) { return false; } + +static inline void module_for_each_mod(int(*func)(struct module *mod, void *data), void *data) +{ +} #endif /* CONFIG_MODULES */ #ifdef CONFIG_SYSFS |
