Lines Matching +defs:table +defs:list
15 * notice, this list of conditions and the following disclaimer.
17 * notice, this list of conditions and the following disclaimer in the
156 const struct db_command *db_cmd; /* cmd table */
160 /* head of base commands list */
166 /* head of show commands list */
172 /* head of machine commands list */
295 "Dump the namecache list.", "address",NULL) },
451 * This function goes through the command list created from commands and ';'
493 * Add command table to the specified list
495 * int type specifies type of command table DDB_SHOW_CMD|DDB_BASE_CMD|DDB_MAC_CMD
496 * *cmd_tbl pointer to static allocated db_command table
498 * Command table must be NULL terminated array of struct db_command
505 /* empty list - ignore */
512 /* now create a list entry for this table */
525 struct db_cmd_tbl_en_head *list;
529 list = &db_base_cmd_list;
532 list = &db_show_cmd_list;
535 list = &db_mach_cmd_list;
541 TAILQ_INSERT_TAIL(list, list_ent, db_cmd_next);
547 * Remove command table specified with db_cmd address == cmd_tbl
553 struct db_cmd_tbl_en_head *list;
555 /* find list on which the entry should live */
558 list=&db_base_cmd_list;
561 list=&db_show_cmd_list;
564 list=&db_mach_cmd_list;
570 TAILQ_FOREACH (list_ent, list, db_cmd_next) {
572 TAILQ_REMOVE(list,
605 * show command tables to the list.
638 * Search command table for command prefix
642 const struct db_command *table,
652 for (cmd = table; cmd->name != 0; cmd++) {
687 * Search list of command tables for command
728 * table and another match(es) in
729 * another table.
760 db_cmd_list(const struct db_cmd_tbl_en_head *list)
764 const struct db_command *table;
768 TAILQ_FOREACH(list_ent,list,db_cmd_next) {
769 table = list_ent->db_cmd;
770 for (i = 0; table[i].name != NULL; i++) {
771 w = strlen(table[i].name);
783 TAILQ_FOREACH(list_ent,list,db_cmd_next) {
784 table = list_ent->db_cmd;
786 for (numcmds = 0; table[numcmds].name != NULL; numcmds++)
792 p = table[j * lines + i].name;
814 * db_tok_string. If subcommand is missing, print the list of all
822 struct db_cmd_tbl_en_head *list;
826 list = &db_base_cmd_list;
828 found = db_cmd_search(db_tok_string, list, &command);
836 list = &db_show_cmd_list;
838 list = &db_mach_cmd_list;
840 /* same list */;
847 db_cmd_list(list);
851 } while (list != NULL);