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

Function uio_intr_enable

dpdk/lib/eal/linux/eal_interrupts.c:469–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469static int
470uio_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
483int
484rte_intr_callback_register(const struct rte_intr_handle *intr_handle,

Callers 2

rte_intr_enableFunction · 0.85
rte_intr_ackFunction · 0.85

Calls 2

rte_intr_fd_getFunction · 0.85
writeFunction · 0.50

Tested by

no test coverage detected