Lines Matching defs:kevent
80 struct epoll_event *l_event, struct kevent *kevent,
82 static void kevent_to_epoll(struct kevent *kevent, struct epoll_event *l_event);
83 static int epoll_kev_copyout(void *arg, struct kevent *kevp, int count);
84 static int epoll_kev_copyin(void *arg, struct kevent *kevp, int count);
93 struct kevent *changelist;
141 /* Structure converting function from epoll to kevent. */
144 struct kevent *kevent, int *nkevents)
163 EV_SET(kevent, fd, EVFILT_READ, kev_flags, 0, 0, 0);
164 kevent->ext[0] = l_event->data;
165 ++kevent;
169 EV_SET(kevent, fd, EVFILT_WRITE, kev_flags, 0, 0, 0);
170 kevent->ext[0] = l_event->data;
171 ++kevent;
176 EV_SET(kevent++, fd, EVFILT_READ, EV_ADD|EV_DISABLE, 0, 0, 0);
201 * Structure converting function from kevent to epoll. In a case
206 kevent_to_epoll(struct kevent *kevent, struct epoll_event *l_event)
209 l_event->data = kevent->ext[0];
211 if ((kevent->flags & EV_ERROR) != 0) {
217 switch (kevent->filter) {
220 if ((kevent->flags & EV_EOF) != 0)
230 * Copyout callback used by kevent. This converts kevent
236 epoll_kev_copyout(void *arg, struct kevent *kevp, int count)
260 * Copyin callback used by kevent. This copies already
261 * converted filters from kernel memory to the kevent
266 epoll_kev_copyin(void *arg, struct kevent *kevp, int count)
279 * Load epoll filter, convert it to kevent filter
280 * and load it into kevent subsystem.
287 struct kevent kev[2];
534 struct kevent kev;
551 * 1. If event does not exists kevent() does nothing and returns ENOENT