| 55 | } |
| 56 | |
| 57 | void |
| 58 | eal_thread_ack_command(void) |
| 59 | { |
| 60 | unsigned int lcore_id = rte_lcore_id(); |
| 61 | char c = 0; |
| 62 | int w2m; |
| 63 | int n; |
| 64 | |
| 65 | w2m = lcore_config[lcore_id].pipe_worker2main[1]; |
| 66 | do { |
| 67 | n = _write(w2m, &c, 1); |
| 68 | } while (n == 0 || (n < 0 && errno == EINTR)); |
| 69 | if (n < 0) |
| 70 | rte_panic("cannot write on configuration pipe\n"); |
| 71 | } |
| 72 | |
| 73 | /* get current thread ID */ |
| 74 | int |
no test coverage detected