| 467 | } |
| 468 | |
| 469 | static int |
| 470 | uio_intr_enable(const struct rte_intr_handle *intr_handle) |
| 471 | { |
| 472 | const int value = 1; |
| 473 | |
| 474 | if (rte_intr_fd_get(intr_handle) < 0 || |
| 475 | write(rte_intr_fd_get(intr_handle), &value, sizeof(value)) < 0) { |
| 476 | RTE_LOG(ERR, EAL, "Error enabling interrupts for fd %d (%s)\n", |
| 477 | rte_intr_fd_get(intr_handle), strerror(errno)); |
| 478 | return -1; |
| 479 | } |
| 480 | return 0; |
| 481 | } |
| 482 | |
| 483 | int |
| 484 | rte_intr_callback_register(const struct rte_intr_handle *intr_handle, |
no test coverage detected