8 static int do_insmod(struct command
*cmdtp
, int argc
, char *argv
[])
10 struct module
*module
;
15 return COMMAND_ERROR_USAGE
;
17 buf
= read_file(argv
[1], &len
);
23 module
= load_module(buf
, len
);
35 static const __maybe_unused
char cmd_insmod_help
[] =
36 "Usage: insmod <module>\n";
38 BAREBOX_CMD_START(insmod
)
40 .usage
= "insert a module",
41 BAREBOX_CMD_HELP(cmd_insmod_help
)