Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/modutils/depmod.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/modutils/depmod.c
r2725 r3232 9 9 */ 10 10 11 //applet:IF_DEPMOD(APPLET(depmod, _BB_DIR_SBIN, _BB_SUID_DROP)) 12 13 //usage:#if !ENABLE_MODPROBE_SMALL 14 //usage:#define depmod_trivial_usage NOUSAGE_STR 15 //usage:#define depmod_full_usage "" 16 //usage:#endif 11 //applet:IF_DEPMOD(APPLET(depmod, BB_DIR_SBIN, BB_SUID_DROP)) 17 12 18 13 #include "libbb.h" … … 37 32 38 33 static int FAST_FUNC parse_module(const char *fname, struct stat *sb UNUSED_PARAM, 39 34 void *data, int depth UNUSED_PARAM) 40 35 { 41 36 char modname[MODULE_NAME_LEN]; … … 101 96 102 97 static void order_dep_list(module_info *modules, module_info *start, 103 98 llist_t *add) 104 99 { 105 100 module_info *m; … … 132 127 } 133 128 134 /* Usage: 129 //usage:#if !ENABLE_MODPROBE_SMALL 130 //usage:#define depmod_trivial_usage "[-n] [-b BASE] [VERSION] [MODFILES]..." 131 //usage:#define depmod_full_usage "\n\n" 132 //usage: "Generate modules.dep, alias, and symbols files" 133 //usage: "\n" 134 //usage: "\n -b BASE Use BASE/lib/modules/VERSION" 135 //usage: "\n -n Dry run: print files to stdout" 136 //usage:#endif 137 138 /* Upstream usage: 135 139 * [-aAenv] [-C FILE or DIR] [-b BASE] [-F System.map] [VERSION] [MODFILES]... 136 140 * -a --all … … 143 147 * Path to /etc/depmod.conf or /etc/depmod.d/ 144 148 * -e --errsyms 145 * When combined with the -F option, this reports any symbols which149 * When combined with the -F option, this reports any symbols 146 150 * which are not supplied by other modules or kernel. 147 151 * -F --filesyms System.map … … 155 159 * -q No-op 156 160 * 157 * So far we only support: [-rn] [-b BASE] [VERSION] [MODFILES]... 158 * -aAeF are accepted but ignored. -vC are not accepted. 161 * So far we only support: [-n] [-b BASE] [VERSION] [MODFILES]... 162 * Accepted but ignored: 163 * -aAe 164 * -F System.map 165 * -C FILE/DIR 166 * 167 * Not accepted: -v 159 168 */ 160 169 enum { … … 208 217 } else { 209 218 recursive_action(".", ACTION_RECURSE, 210 219 parse_module, NULL, &modules, 0); 211 220 } 212 221
Note:
See TracChangeset
for help on using the changeset viewer.