barebox/commands/lsmod.c
Sascha Hauer 922bb41a47 remove typedef cmd_tbl_t and replace it with struct command
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00

19 lines
306 B
C

#include <common.h>
#include <command.h>
#include <module.h>
static int do_lsmod(struct command *cmdtp, int argc, char *argv[])
{
struct module *mod;
for_each_module(mod)
printf("%s\n", mod->name);
return 0;
}
BAREBOX_CMD_START(lsmod)
.cmd = do_lsmod,
.usage = "list modules",
BAREBOX_CMD_END