| /src/sys/rump/net/lib/libshmif/ |
| shmif_user.c | 61 struct kevent kev; local 73 EV_SET(&kev, fd, EVFILT_VNODE, EV_ADD|EV_ENABLE|EV_CLEAR, 75 if (kevent(kq, &kev, 1, NULL, 0, NULL) == -1) { 90 struct kevent kev; local 95 rv = kevent(kq, NULL, 0, &kev, 1, NULL);
|
| /src/sys/kern/ |
| sys_epoll.c | 255 struct kevent kev[2]; local 305 error = epoll_to_kevent(epfd, fd, event, kev, &nchanges); 334 error = kevent1(retval, epfd, kev, nchanges, NULL, 0, NULL, &k_ops); 497 struct kevent kev; local 505 EV_SET(&kev, fd, filter, flags, 0, 0, 0); 507 return kevent1(retval, epfd, &kev, 1, NULL, 0, NULL, &k_ops);
|
| kern_event.c | 618 filter_touch(struct knote *kn, struct kevent *kev, long type) 633 return kn->kn_fop->f_touch(kn, kev, type); 1308 filt_timercompute(struct kevent *kev, uintptr_t *tticksp) 1313 if (kev->fflags & ~(NOTE_TIMER_UNITMASK | NOTE_ABSTIME)) { 1321 switch (kev->fflags & NOTE_TIMER_UNITMASK) { 1323 ts.tv_sec = kev->data; 1328 ts.tv_sec = kev->data / 1000; 1329 ts.tv_nsec = (kev->data % 1000) * 1000000; 1333 ts.tv_sec = kev->data / 1000000; 1334 ts.tv_nsec = (kev->data % 1000000) * 1000 1440 struct kevent kev = { local [all...] |
| /src/tests/lib/libc/sys/ |
| t_eventfd.c | 277 struct kevent kev[2]; local 282 EV_SET(&kev[0], efd, EVFILT_READ, EV_ADD, 0, 0, NULL); 283 EV_SET(&kev[1], efd, EVFILT_WRITE, EV_ADD, 0, 0, NULL); 284 ATF_REQUIRE(kevent(kq, kev, 2, NULL, 0, &ts) == 0); 318 memset(kev, 0, sizeof(kev)); 319 ATF_REQUIRE(kevent(kq, NULL, 0, kev, 2, &ts) == 1); 320 ATF_REQUIRE(kev[0].ident == (uintptr_t)efd); 321 ATF_REQUIRE(kev[0].filter == EVFILT_WRITE); 322 ATF_REQUIRE((kev[0].flags & (EV_EOF | EV_ERROR)) == 0) 376 struct kevent kev[1]; local [all...] |
| t_timerfd.c | 521 struct kevent kev[1]; local 526 EV_SET(&kev[0], fd, EVFILT_READ, EV_ADD, 0, 0, NULL); 527 ATF_REQUIRE(kevent(kq, kev, 1, NULL, 0, &ts) == 0); 528 EV_SET(&kev[0], fd, EVFILT_WRITE, EV_ADD, 0, 0, NULL); 529 ATF_CHECK_ERRNO(EINVAL, kevent(kq, kev, 1, NULL, 0, &ts) == -1); 595 memset(kev, 0, sizeof(kev)); 596 ATF_REQUIRE(kevent(kq, NULL, 0, kev, 1, &ts) == 1); 597 ATF_REQUIRE(kev[0].ident == (uintptr_t)fd); 598 ATF_REQUIRE(kev[0].filter == EVFILT_READ) 632 struct kevent kev[1]; local [all...] |
| /src/lib/libpuffs/ |
| framebuf.c | 540 struct kevent kev; local 561 EV_SET(&kev, fd, EVFILT_READ, EV_ENABLE, 0, 0, fio); 563 if (kevent(pu->pu_kq, &kev, 1, NULL, 0, NULL) == -1) 579 EV_SET(&kev, fd, EVFILT_READ, EV_DISABLE, 0, 0, fio); 580 rv = kevent(pu->pu_kq, &kev, 1, NULL, 0, NULL); 781 struct kevent kev[2]; local 812 EV_SET(&kev[nf], fd, EVFILT_READ, EV_ADD|readenable, 0, 0, fio); 815 EV_SET(&kev[nf], fd, EVFILT_WRITE, 819 rv = kevent(pu->pu_kq, kev, nf, NULL, 0, NULL); 854 struct kevent kev; local 885 struct kevent kev[2]; local 927 struct kevent kev; local 964 struct kevent kev; local [all...] |
| /src/lib/librumpclient/ |
| rumpclient.c | 246 struct kevent kev[8]; local 254 kev, __arraycount(kev), NULL); 272 if (kev[i].filter == EVFILT_SIGNAL) 705 struct kevent kev[NSIG+1]; local 715 EV_SET(&kev[i], i+1, EVFILT_SIGNAL, EV_ADD|EV_ENABLE, 0, 0, 0); 717 EV_SET(&kev[NSIG], clispc.spc_fd, 719 if (host_kevent(fd, kev, NSIG+1, NULL, 0, NULL) == -1) { 1115 struct kevent kev[2]; local 1122 EV_SET(&kev[0], clispc.spc_fd [all...] |
| /src/sys/compat/linux/common/ |
| linux_inotify.c | 428 struct kevent kev; local 514 memset(&kev, 0, sizeof(kev)); 515 EV_SET(&kev, wd, inotify_filtid, EV_ADD|EV_ENABLE, 518 kev.flags |= EV_ONESHOT; 519 kev.fflags |= inotify_mask_to_kevent_fflags(mask, 522 error = kevent1(retval, ifd->ifd_kqfd, &kev, 1, NULL, 0, NULL, 571 kev.fflags = NOTE_DELETE | NOTE_REVOKE 588 kn->kn_sfflags |= kev.fflags; 590 kn->kn_sfflags = kev.fflags 621 struct kevent kev; local [all...] |
| /src/tests/dev/audio/ |
| audiotest.c | 1162 #define KEVENT_SET(kq, kev, nev) \ 1163 debug_kevent_set(__LINE__, kq, kev, nev) 1164 int debug_kevent_set(int line, int kq, const struct kevent *kev, size_t nev) 1166 DPRINTFF(line, "kevent_set(%d, %p, %zd)", kq, kev, nev); 1167 int r = rump_or_kevent(kq, kev, nev, NULL, 0, NULL); 1171 #define KEVENT_POLL(kq, kev, nev, ts) \ 1172 debug_kevent_poll(__LINE__, kq, kev, nev, ts) 1173 int debug_kevent_poll(int line, int kq, struct kevent *kev, size_t nev, 1186 DPRINTFF(line, "kevent_poll(%d, %p, %zd, %s)", kq, kev, nev, tsbuf); 1187 int r = rump_or_kevent(kq, NULL, 0, kev, nev, ts) 3546 struct kevent kev; local 3629 struct kevent kev; local 3675 struct kevent kev; local 3740 struct kevent kev; local 3813 struct kevent kev; local 3931 struct kevent kev[2]; local 7125 struct kevent kev; local [all...] |