summaryrefslogtreecommitdiffstats
path: root/commands/lsmod.c
blob: 9909724cb2f5f3007088ab9aa27039841bb051af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <common.h>
#include <command.h>
#include <module.h>

static int do_lsmod (cmd_tbl_t *cmdtp, int argc, char *argv[])
{
	struct module *mod;

	for_each_module(mod)
		printf("%s\n", mod->name);

	return 0;
}

U_BOOT_CMD_START(lsmod)
	.maxargs	= 1,
	.cmd		= do_lsmod,
	.usage		= "list modules",
U_BOOT_CMD_END