tools: kmod: add list command

It's the same of lsmod since there's not much to change on its format.
This commit is contained in:
Lucas De Marchi 2011-12-23 11:33:02 -02:00
parent fa29c0ee96
commit 252c51a996
3 changed files with 8 additions and 0 deletions

View File

@ -100,4 +100,10 @@ const struct kmod_cmd kmod_cmd_compat_lsmod = {
.help = "compat lsmod command",
};
const struct kmod_cmd kmod_cmd_list = {
.name = "list",
.cmd = do_lsmod,
.help = "list currently loaded modules",
};
#endif

View File

@ -36,6 +36,7 @@ static const struct kmod_cmd kmod_cmd_help;
static const struct kmod_cmd *kmod_cmds[] = {
&kmod_cmd_help,
&kmod_cmd_list,
};
static const struct kmod_cmd *kmod_compat_cmds[] = {

View File

@ -33,4 +33,5 @@ extern const struct kmod_cmd kmod_cmd_compat_insmod;
extern const struct kmod_cmd kmod_cmd_compat_modinfo;
extern const struct kmod_cmd kmod_cmd_compat_modprobe;
extern const struct kmod_cmd kmod_cmd_list;
#endif