Lines Matching defs:command

104  * Results of command search.
126 * b) show commands which are subcommands of show command -> show aio_jobs
141 /* the global queue of all command tables */
144 /* TAILQ entry used to register command tables */
403 * This function goes through the command list created from commands and ';'
426 /* Initialize ddb command tables */
435 /* register command tables */
445 * Add command table to the specified list
447 * int type specifies type of command table DDB_SHOW_CMD|DDB_BASE_CMD|DDB_MAC_CMD
499 * Remove command table specified with db_cmd address == cmd_tbl
548 /* Init default command tables add machine, base,
549 show command tables to the list */
573 * Search command table for command prefix
606 /* prefix match: end of name, not end of command */
622 * Search list of command tables for command
685 db_printf("No such command: %s\n", name);
687 db_printf("Ambiguous command: %s\n", name);
748 * Read complete command with all subcommands, starting with current
750 * subcommands. If command/subcommand is not found, print an error
751 * message. Returns pointer to "leaf" command or NULL.
756 const struct db_command *command;
763 found = db_cmd_search(db_tok_string, list, &command);
764 if (command == NULL) {
770 if (command->flag == CS_SHOW)
772 else if (command->flag == CS_MACH)
774 else if (command->flag == CS_COMPAT)
788 return command;
792 * Parse command line and execute apropriate function.
797 const struct db_command *command;
805 command = NULL;
810 * An empty line repeats last command, at 'next'.
811 * Only a count repeats the last command with the new count.
813 command = *last_cmdp;
815 if (!command)
842 command = db_read_command();
843 if (command == NULL)
846 if ((command->flag & CS_OWN) == 0) {
850 * command [/modifier] [addr] [,count]
888 if ((command->flag & CS_MORE) == 0) {
894 if (command != NULL && command->flag & CS_NOREPEAT) {
898 *last_cmdp = command;
903 if (command != NULL) {
905 * Execute the command.
907 if (command->fcn != NULL)
908 (*command->fcn)(addr, have_addr, count, modif);
910 if (command->flag & CS_SET_DOT) {
912 * If command changes dot, set dot to
921 * If command does not change dot,
936 const struct db_command *command;
941 /* is there another command after the "help"? */
948 command = db_read_command();
949 if (command == NULL)
953 db_printf("Command: %s\n", command->name);
954 if (command->cmd_descr != NULL)
955 db_printf(" Description: %s\n", command->cmd_descr);
956 if (command->cmd_arg != NULL)
957 db_printf(" Arguments: %s\n", command->cmd_arg);
958 if (command->cmd_arg_help != NULL)
960 command->cmd_arg_help);
961 if ((command->cmd_arg == NULL) && (command->cmd_descr == NULL))
1283 db_printf("This command can only be used in-kernel.\n");
1310 db_printf("This command can only be used in-kernel.\n");
1377 db_printf("This command can only be used in-kernel.\n");