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
41 #define RTE_INTR_EVENT_ADD 1UL
42 #define RTE_INTR_EVENT_DEL 2UL
44 typedef void (*rte_intr_event_cb_t)(
int fd,
void *arg);
46 struct rte_epoll_data {
49 rte_intr_event_cb_t cb_fun;
54 RTE_EPOLL_INVALID = 0,
64 struct rte_epoll_data epdata;
79 int efds[RTE_MAX_RXTX_INTR_VEC_ID];
85 #define RTE_EPOLL_PER_THREAD -1
105 int maxevents,
int timeout);
155 int epfd,
int op,
unsigned int vec,
void *data);