Home | History | Annotate | Download | only in tipc

Lines Matching refs:cmd

20 const struct cmd *find_cmd(const struct cmd *cmds, char *str)
22 const struct cmd *c;
23 const struct cmd *match = NULL;
25 for (c = cmds; c->cmd; c++) {
26 if (strstr(c->cmd, str) != c->cmd)
109 int run_cmd(struct nlmsghdr *nlh, const struct cmd *caller,
110 const struct cmd *cmds, struct cmdl *cmdl, void *data)
113 const struct cmd *cmd;
123 cmd = find_cmd(cmds, name);
124 if (!cmd) {
135 return (cmd->func)(nlh, cmd, cmdl, data);