5 #ifndef _RTE_INTERRUPTS_H_
6 #error "don't include this file directly, please include generic <rte_interrupts.h>"
17 #ifndef _RTE_EAL_INTERRUPTS_H_
18 #define _RTE_EAL_INTERRUPTS_H_
20 #define RTE_MAX_RXTX_INTR_VEC_ID 32
21 #define RTE_INTR_VEC_ZERO_OFFSET 0
22 #define RTE_INTR_VEC_RXTX_OFFSET 1
40 #define RTE_INTR_EVENT_ADD 1UL
41 #define RTE_INTR_EVENT_DEL 2UL
43 typedef void (*rte_intr_event_cb_t)(
int fd,
void *arg);
45 struct rte_epoll_data {
48 rte_intr_event_cb_t cb_fun;
53 RTE_EPOLL_INVALID = 0,
63 struct rte_epoll_data epdata;
78 int efds[RTE_MAX_RXTX_INTR_VEC_ID];
84 #define RTE_EPOLL_PER_THREAD -1
104 int maxevents,
int timeout);
154 int epfd,
int op,
unsigned int vec,
void *data);