Reduce valgrind memory leak warnings in depmod and modprobe
[mit.git] / moduleops.h
blobb36050a8b35338e8a59d0fe796f4540d67cd4a9c
1 #ifndef MODINITTOOLS_MODULEOPS_H
2 #define MODINITTOOLS_MODULEOPS_H
3 #include <stdio.h>
5 /* All the icky stuff to do with manipulating 64 and 32-bit modules
6 belongs here. */
7 struct kernel_symbol32 {
8 char value[4];
9 char name[64 - 4];
12 struct kernel_symbol64 {
13 char value[8];
14 char name[64 - 8];
17 struct module_ops
19 void (*load_symbols)(struct module *module);
20 void (*calculate_deps)(struct module *module, int verbose);
21 void (*fetch_tables)(struct module *module);
22 char *(*get_aliases)(struct module *module, unsigned long *size);
23 char *(*get_modinfo)(struct module *module, unsigned long *size);
26 extern struct module_ops mod_ops32, mod_ops64;
28 #endif /* MODINITTOOLS_MODULEOPS_H */