It's the same of lsmod since there's not much to change on its format.
.help = "compat lsmod command",
};
+const struct kmod_cmd kmod_cmd_list = {
+ .name = "list",
+ .cmd = do_lsmod,
+ .help = "list currently loaded modules",
+};
+
#endif
static const struct kmod_cmd *kmod_cmds[] = {
&kmod_cmd_help,
+ &kmod_cmd_list,
};
static const struct kmod_cmd *kmod_compat_cmds[] = {
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