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

Function main

dpdk/examples/multi_process/hotplug_mp/main.c:23–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "commands.h"
22
23int main(int argc, char **argv)
24{
25 int ret;
26 struct cmdline *cl;
27
28 ret = rte_eal_init(argc, argv);
29 if (ret < 0)
30 rte_panic("Cannot init EAL\n");
31
32 cl = cmdline_stdin_new(main_ctx, "example> ");
33 if (cl == NULL)
34 rte_panic("Cannot create cmdline instance\n");
35 cmdline_interact(cl);
36 cmdline_stdin_exit(cl);
37
38 rte_eal_cleanup();
39
40 return 0;
41}

Callers

nothing calls this directly

Calls 5

cmdline_stdin_newFunction · 0.85
cmdline_interactFunction · 0.85
cmdline_stdin_exitFunction · 0.85
rte_eal_initFunction · 0.50
rte_eal_cleanupFunction · 0.50

Tested by

no test coverage detected