cmdstr
pr_debug("%s: cmd='%s' start\n", __func__, cmdstr(cmd->cmd));
pr_debug("%s: cmd='%s' done\n", __func__, cmdstr(cmd->cmd));
extern int kdb_parse(const char *cmdstr);
static int kdb_defcmd2(const char *cmdstr, const char *argv0)
cmdstr);
kms->statement = kdb_strdup(cmdstr, GFP_KDB);
int kdb_parse(const char *cmdstr)
cp = (char *)cmdstr;
cmdstr);
"command ignored\n%s\n", cmdstr);
int result = kdb_defcmd2(cmdstr, argv[0]);
const char *cmdstr;
cmdstr = argv[0];
if (strcmp(cmd->name, cmdstr))
pr_err("Unknown command: %s\n", cmdstr);