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

Function eal_thread_wait_command

dpdk/lib/eal/windows/eal_thread.c:41–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void
42eal_thread_wait_command(void)
43{
44 unsigned int lcore_id = rte_lcore_id();
45 int m2w;
46 char c;
47 int n;
48
49 m2w = lcore_config[lcore_id].pipe_main2worker[0];
50 do {
51 n = _read(m2w, &c, 1);
52 } while (n < 0 && errno == EINTR);
53 if (n <= 0)
54 rte_panic("cannot read on configuration pipe\n");
55}
56
57void
58eal_thread_ack_command(void)

Callers 1

eal_thread_loopFunction · 0.50

Calls 1

rte_lcore_idFunction · 0.85

Tested by

no test coverage detected