mirror of
https://github.com/AuxXxilium/kmod.git
synced 2025-01-18 18:07:26 +07:00
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:
parent
fa29c0ee96
commit
252c51a996
@ -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
|
||||
|
@ -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[] = {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user