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

Function prompt

dpdk/examples/ntb/ntb_fwd.c:936–947  ·  view source on GitHub ↗

prompt function, called from main on MAIN lcore */

Source from the content-addressed store, hash-verified

934
935/* prompt function, called from main on MAIN lcore */
936static void
937prompt(void)
938{
939 struct cmdline *cl;
940
941 cl = cmdline_stdin_new(main_ctx, "ntb> ");
942 if (cl == NULL)
943 return;
944
945 cmdline_interact(cl);
946 cmdline_stdin_exit(cl);
947}
948
949static void
950signal_handler(int signum)

Callers 1

mainFunction · 0.70

Calls 3

cmdline_stdin_newFunction · 0.85
cmdline_interactFunction · 0.85
cmdline_stdin_exitFunction · 0.85

Tested by

no test coverage detected