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

Function rte_dpaa_setup_intr

dpdk/drivers/bus/dpaa/dpaa_bus.c:604–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604static int rte_dpaa_setup_intr(struct rte_intr_handle *intr_handle)
605{
606 int fd;
607
608 fd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC);
609 if (fd < 0) {
610 DPAA_BUS_ERR("Cannot set up eventfd, error %i (%s)",
611 errno, strerror(errno));
612 return errno;
613 }
614
615 if (rte_intr_fd_set(intr_handle, fd))
616 return rte_errno;
617
618 if (rte_intr_type_set(intr_handle, RTE_INTR_HANDLE_EXT))
619 return rte_errno;
620
621 return 0;
622}
623
624static int
625rte_dpaa_bus_probe(void)

Callers 1

rte_dpaa_bus_probeFunction · 0.85

Calls 3

eventfdClass · 0.85
rte_intr_fd_setFunction · 0.85
rte_intr_type_setFunction · 0.85

Tested by

no test coverage detected