| 453 | } |
| 454 | |
| 455 | static int |
| 456 | uio_intr_disable(const struct rte_intr_handle *intr_handle) |
| 457 | { |
| 458 | const int value = 0; |
| 459 | |
| 460 | if (rte_intr_fd_get(intr_handle) < 0 || |
| 461 | write(rte_intr_fd_get(intr_handle), &value, sizeof(value)) < 0) { |
| 462 | RTE_LOG(ERR, EAL, "Error disabling interrupts for fd %d (%s)\n", |
| 463 | rte_intr_fd_get(intr_handle), strerror(errno)); |
| 464 | return -1; |
| 465 | } |
| 466 | return 0; |
| 467 | } |
| 468 | |
| 469 | static int |
| 470 | uio_intr_enable(const struct rte_intr_handle *intr_handle) |
no test coverage detected