| 1 | // Note: the name zz_epoll_data is deliberately chosen to minimise the chance of conflicts with `epoll_data` in the future. |
| 2 | typedef union zz_epoll_data { |
| 3 | void *ptr; |
| 4 | int fd; |
| 5 | uint32_t u32; |
| 6 | uint64_t u64; |
| 7 | } zz_epoll_data_t; |
| 8 | |
| 9 | struct zz_epoll_event { |
| 10 | uint32_t events; /* Epoll events */ |
| 11 | zz_epoll_data_t data; /* User data variable */ |
| 12 | }; |
| 13 |