initcall: add postconsole_initcall
[barebox-mini2440.git] / commands / lsmod.c
blob26d2fe4e34214ad98bbb482b5789b656a766707f
1 #include <common.h>
2 #include <command.h>
3 #include <module.h>
5 static int do_lsmod(struct command *cmdtp, int argc, char *argv[])
7 struct module *mod;
9 for_each_module(mod)
10 printf("%s\n", mod->name);
12 return 0;
15 BAREBOX_CMD_START(lsmod)
16 .cmd = do_lsmod,
17 .usage = "list modules",
18 BAREBOX_CMD_END