Lines Matching refs:event
95 struct epoll_event event; in reactor_new() local
96 memset(&event, 0, sizeof(event)); in reactor_new()
97 event.events = EPOLLIN; in reactor_new()
98 event.data.ptr = NULL; in reactor_new()
99 if (epoll_ctl(ret->epoll_fd, EPOLL_CTL_ADD, ret->event_fd, &event) == -1) { in reactor_new()
153 struct epoll_event event; in reactor_register() local
154 memset(&event, 0, sizeof(event)); in reactor_register()
155 if (read_ready) event.events |= (EPOLLIN | EPOLLRDHUP); in reactor_register()
156 if (write_ready) event.events |= EPOLLOUT; in reactor_register()
157 event.data.ptr = object; in reactor_register()
159 if (epoll_ctl(reactor->epoll_fd, EPOLL_CTL_ADD, fd, &event) == -1) { in reactor_register()
175 struct epoll_event event; in reactor_change_registration() local
176 memset(&event, 0, sizeof(event)); in reactor_change_registration()
177 if (read_ready) event.events |= (EPOLLIN | EPOLLRDHUP); in reactor_change_registration()
178 if (write_ready) event.events |= EPOLLOUT; in reactor_change_registration()
179 event.data.ptr = object; in reactor_change_registration()
181 if (epoll_ctl(object->reactor->epoll_fd, EPOLL_CTL_MOD, object->fd, &event) == in reactor_change_registration()