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