commands
for (i = 0; commands[i].cc_name != NULL; ++i)
if (strcmp(*argv, commands[i].cc_name) == 0)
if (commands[i].cc_name == NULL) {
for (i = 0; commands[i].cc_name != NULL; ++i)
if (strncmp(*argv, commands[i].cc_name,
if (commands[i].cc_name == NULL)
exit ((*commands[i].cc_handler)(commands[i].cc_name, argc, argv));
static const struct changer_command commands[] = {
for (i = 0; commands[i].cmd != NULL; i++)
if (strncmp(commands[i].cmd, argv[0],
strlen(commands[i].cmd)) == 0)
if (commands[i].cmd == NULL) {
if (commands[i].nargs != argc - 1) {
fprintf(stderr, "usage: %s\n", commands[i].usage);
if (recno && commands[i].rconv) {
(*commands[i].func)(db, argv);
for (i = 0; commands[i].cmd; i++)
if (commands[i].descrip)
commands[i].usage, commands[i].descrip);
cmd_table commands[] = {
char commands[] =
puts(commands);
sc->commands = kmalloc(sizeof(struct mpr_command) * sc->num_reqs,
if (!sc->commands) {
cm = &sc->commands[i];
cm = &sc->commands[i];
cm = &sc->commands[le16toh(desc->SCSIIOSuccess.SMID)];
cm = &sc->commands[
if (sc->commands != NULL) {
cm = &sc->commands[i];
kfree(sc->commands, M_MPR);
cm = &sc->commands[i];
TAILQ_FOREACH(cm, &targ->commands, cm_link) {
TAILQ_INSERT_TAIL(&targ->commands, cm, cm_link);
TAILQ_INSERT_TAIL(&targ->commands, cm, cm_link);
TAILQ_REMOVE(&cm->cm_targ->commands, cm, cm_link);
TAILQ_FOREACH_MUTABLE(tm, &targ->commands, cm_link, next_cm) {
TAILQ_HEAD(, mpr_command) commands;
cm = &sc->commands[i];
TAILQ_INIT(&targ->commands);
TAILQ_INIT(&targ->commands);
TAILQ_INIT(&targ->commands);
cm = &sc->commands[i];
struct mpr_command *commands;
if (sc->commands != NULL) {
cm = &sc->commands[i];
kfree(sc->commands, M_MPT2);
cm = &sc->commands[desc->SCSIIOSuccess.SMID];
cm = &sc->commands[desc->AddressReply.SMID];
sc->commands = kmalloc(sizeof(struct mps_command) * sc->num_reqs,
cm = &sc->commands[i];
cm = &sc->commands[i];
TAILQ_FOREACH(cm, &targ->commands, cm_link) {
TAILQ_INSERT_TAIL(&targ->commands, cm, cm_link);
TAILQ_REMOVE(&cm->cm_targ->commands, cm, cm_link);
TAILQ_FOREACH_MUTABLE(tm, &targ->commands, cm_link, next_cm) {
TAILQ_HEAD(, mps_command) commands;
TAILQ_INIT(&targ->commands);
TAILQ_INIT(&targ->commands);
struct mps_command *commands;
uint8_t commands[HCI_COMMANDS_SIZE]; /* opcode bitmask */
memcpy(unit->hci_cmds, rp.commands, HCI_COMMANDS_SIZE);
ng_btsocket_hci_raw_sec_filter->commands[NG_HCI_OGF(opcode) - 1],
f = ng_btsocket_hci_raw_sec_filter->commands[NG_HCI_OGF_LINK_CONTROL-1];
f = ng_btsocket_hci_raw_sec_filter->commands[NG_HCI_OGF_LINK_POLICY-1];
f = ng_btsocket_hci_raw_sec_filter->commands[NG_HCI_OGF_HC_BASEBAND-1];
f = ng_btsocket_hci_raw_sec_filter->commands[NG_HCI_OGF_INFO - 1];
f = ng_btsocket_hci_raw_sec_filter->commands[NG_HCI_OGF_STATUS - 1];
f = ng_btsocket_hci_raw_sec_filter->commands[NG_HCI_OGF_TESTING - 1];
bitstr_t bit_decl(commands[0x3f], 0x3ff);
for (cmd = commands; cmd->name != NULL; ++cmd) {
} commands[] = {
void commands(void);
commands();
commands();
struct commands *comp;
for (cmds = commands; cmds->cmd != NULL; ++cmds) {
static struct command commands[] = {
for (cmd = commands ; cmd->command != NULL; cmd++) {
for (cmd = commands ; cmd->command != NULL ; cmd++)
} commands[] = {
commands = parse_conf(conf, repd, reportid, ignore);
for (cmd = commands; cmd; cmd = cmd->next) {
freecommands(commands);
commands = cmds;
static struct command *commands;
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
ask_to_wipe_boot_sector(struct i_fn_args *a, struct commands *fcmds)
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
struct commands *cmds;
unmount_altfs(struct i_fn_args *a __unused, struct commands *cmds __unused)
struct commands *cmds;
handle_altfs(struct i_fn_args *a, struct commands *cmds)
struct commands *cmds;
struct commands *cmds;
command_add(struct commands *cmds, const char *fmt, ...)
command_get_first(const struct commands *cmds)
commands_preview(struct dfui_connection *c, const struct commands *cmds)
commands_execute(struct i_fn_args *a, struct commands *cmds)
commands_free(struct commands *cmds)
AURA_FREE(cmds, commands);
struct commands *
struct commands *cmds;
AURA_MALLOC(cmds, commands);
command_new(struct commands *cmds)
struct command *command_get_first(const struct commands *);
void commands_preview(struct dfui_connection *, const struct commands *);
int commands_execute(struct i_fn_args *, struct commands *);
void commands_free(struct commands *);
void unmount_all_under(struct i_fn_args *, struct commands *,
struct commands;
struct commands *commands_new(void);
struct command *command_add(struct commands *, const char *, ...)
struct commands *cmds;
unmount_all_under(struct i_fn_args *a, struct commands *cmds, const char *fmt, ...)
struct commands *cmds;
for (i = 0; commands[i].cmd != NULL; i++)
if (!strcmp(argv[0], commands[i].cmd))
return(commands[i].func(argc, argv));
for (i = 0; commands[i].cmd != NULL; i++)
if (!strcmp(argv[1], commands[i].cmd)) {
fprintf(stderr, "%s\n", commands[i].text);
for (i = 0; commands[i].cmd != NULL; i++)
fprintf(stderr, " %-20s %s\n", commands[i].cmd, commands[i].desc);
} commands[] = {