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

Function uio_intr_disable

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

Source from the content-addressed store, hash-verified

453}
454
455static int
456uio_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
469static int
470uio_intr_enable(const struct rte_intr_handle *intr_handle)

Callers 1

rte_intr_disableFunction · 0.85

Calls 2

rte_intr_fd_getFunction · 0.85
writeFunction · 0.50

Tested by

no test coverage detected