repo.or.cz
/
barebox-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
initcall: add postconsole_initcall
[barebox-mini2440.git]
/
commands
/
lsmod.c
blob
26d2fe4e34214ad98bbb482b5789b656a766707f
1
#include <common.h>
2
#include <command.h>
3
#include <module.h>
4
5
static int
do_lsmod
(
struct
command
*
cmdtp
,
int
argc
,
char
*
argv
[])
6
{
7
struct
module
*
mod
;
8
9
for_each_module
(
mod
)
10
printf
(
"%s
\n
"
,
mod
->
name
);
11
12
return
0
;
13
}
14
15
BAREBOX_CMD_START
(
lsmod
)
16
.
cmd
=
do_lsmod
,
17
.
usage
=
"list modules"
,
18
BAREBOX_CMD_END