| 39 | } |
| 40 | |
| 41 | void |
| 42 | eal_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 | |
| 57 | void |
| 58 | eal_thread_ack_command(void) |
no test coverage detected