Wrap epoll/kqueue data into a struct.