Searched refs:num_commands (Results 1 – 2 of 2) sorted by relevance
20 unsigned int num_commands; member31 if (cli.num_commands < MAX_COMMANDS) in cli_register_command()36 for (i = 0; i < cli.num_commands; i++) in cli_register_command()43 cli.commands[cli.num_commands++] = command; in cli_register_command()58 while (i < cli.num_commands) in cli_unregister_command()62 cli.num_commands--; in cli_unregister_command()63 unsigned int remaining_cmds = cli.num_commands - i; in cli_unregister_command()68 cli.commands[cli.num_commands] = NULL; in cli_unregister_command()77 int cli_register_commands(const struct cli_command *commands, int num_commands) in cli_register_commands() argument80 for (i = 0; i < num_commands; i++) in cli_register_commands()[all …]
66 int cli_register_commands(const struct cli_command *commands, int num_commands);75 int cli_unregister_commands(const struct cli_command *commands, int num_commands);