modprobe: pull underscores() out of do_modprobe()
[mit.git] / depmod.h
blob7678241b68375285586eee771357fc856ef602e8
1 /*
2 * depmod.h - prototypes for the depmod utility
3 */
5 #ifndef MODINITTOOLS_DEPMOD_H
6 #define MODINITTOOLS_DEPMOD_H
7 #include "list.h"
8 #include "elfops.h"
10 struct module;
12 struct module
14 /* Next module in list of all modules */
15 struct module *next;
17 /* Dependencies: filled in by ops->calculate_deps() */
18 unsigned int num_deps;
19 struct module **deps;
21 /* Set while we are traversing dependencies */
22 struct list_head dep_list;
24 /* Line number in modules.order (or INDEX_PRIORITY_MIN) */
25 unsigned int order;
27 /* Tables extracted from module by ops->fetch_tables(). */
28 struct module_tables tables;
30 struct elf_file *file;
32 char *basename; /* points into pathname */
33 char pathname[0];
36 #endif /* MODINITTOOLS_DEPMOD_H */