MCPcopy Create free account
hub / github.com/HelenOS/helenos / cmd_init

Function cmd_init

kernel/generic/src/console/cmd.c:640–655  ·  view source on GitHub ↗

Initialize and register commands. */

Source from the content-addressed store, hash-verified

638
639/** Initialize and register commands. */
640void cmd_init(void)
641{
642 unsigned int i;
643
644 for (i = 0; basic_commands[i]; i++) {
645 cmd_initialize(basic_commands[i]);
646 }
647
648 for (i = 0; basic_commands[i]; i++) {
649 if (!cmd_register(basic_commands[i])) {
650 log(LF_OTHER, LVL_ERROR,
651 "Cannot register command %s",
652 basic_commands[i]->name);
653 }
654 }
655}
656
657/** List supported commands.
658 *

Callers 1

kconsole_initFunction · 0.85

Calls 3

cmd_initializeFunction · 0.85
cmd_registerFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected