MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cmdline_valid_buffer

Function cmdline_valid_buffer

dpdk/lib/cmdline/cmdline.c:18–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#include "cmdline_private.h"
17
18static void
19cmdline_valid_buffer(struct rdline *rdl, const char *buf,
20 __rte_unused unsigned int size)
21{
22 struct cmdline *cl = rdl->opaque;
23 int ret;
24 ret = cmdline_parse(cl, buf);
25 if (ret == CMDLINE_PARSE_AMBIGUOUS)
26 cmdline_printf(cl, "Ambiguous command\n");
27 else if (ret == CMDLINE_PARSE_NOMATCH)
28 cmdline_printf(cl, "Command not found\n");
29 else if (ret == CMDLINE_PARSE_BAD_ARGS)
30 cmdline_printf(cl, "Bad arguments\n");
31}
32
33static int
34cmdline_complete_buffer(struct rdline *rdl, const char *buf,

Callers

nothing calls this directly

Calls 2

cmdline_parseFunction · 0.85
cmdline_printfFunction · 0.85

Tested by

no test coverage detected