/src/tests/kernel/kqueue/read/ |
t_file2.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 57 struct kevent event[1]; local in function:ATF_TC_BODY 68 EV_SET(&event[0], fd1, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0); 69 RL(kevent(kq, event, 1, NULL, 0, NULL));
|
t_pipe.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 53 struct kevent event[1]; local in function:ATF_TC_BODY 61 EV_SET(&event[0], fds[0], EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0); 62 RL(kevent(kq, event, 1, NULL, 0, NULL)); 68 RL(n = kevent(kq, NULL, 0, event, 1, NULL)); 70 "%" PRId64 "\n", n, event[0].flags, event[0].fflags, event[0].data); 72 RL(n = read(fds[0], buffer, event[0].data)) [all...] |
t_file.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 38 #include <sys/event.h> 88 struct kevent event[1]; local in function:ATF_TC_BODY 106 EV_SET(&event[0], fd, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0); 107 RL(kevent(kq, event, 1, NULL, 0, NULL)); 110 RL(n = kevent(kq, NULL, 0, event, 1, NULL)); 114 "%" PRId64 "\n", n, event[0].flags, event[0].fflags, 115 event[0].data); 117 if (event[0].data < 0 [all...] |
t_fifo.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 76 struct kevent event[1]; local in function:ATF_TC_BODY 95 EV_SET(&event[0], rfd, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0); 96 ATF_REQUIRE(kevent(kq, event, 1, NULL, 0, NULL) == 0); 99 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 0); 105 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 1); 106 ATF_REQUIRE(event[0].ident == (uintptr_t)rfd); 107 ATF_REQUIRE(event[0].filter == EVFILT_READ); 108 ATF_REQUIRE((event[0].flags & EV_EOF) == 0) [all...] |
t_ttypty.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 56 struct kevent event[1]; local in function:h_check 101 EV_SET(&event[0], acurrent, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0); 102 RL(kevent(kq, event, 1, NULL, 0, NULL)); 104 RL(n = kevent(kq, NULL, 0, event, 1, NULL)); 107 "data: %" PRId64 "\n", n, event[0].filter, event[0].flags, 108 event[0].fflags, event[0].data) 148 struct kevent event[1]; local in function:ATF_TC_BODY [all...] |
/src/tests/kernel/kqueue/ |
t_oneshot.c | 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 33 #include <sys/event.h> 53 struct kevent event[1]; local in function:ATF_TC_BODY 58 EV_SET(&event[0], 1, EVFILT_TIMER, EV_ADD | EV_ONESHOT, 0, 1, MY_UDATA); 60 ATF_REQUIRE(kevent(kq, event, 1, NULL, 0, NULL) == 0); 61 memset(event, 0, sizeof(event)); 62 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, NULL) == 1); 63 ATF_REQUIRE(event[0].ident == 1); 64 ATF_REQUIRE(event[0].data == 1) [all...] |
t_proc1.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 43 #include <sys/event.h> 100 struct kevent event[1]; local in function:ATF_TC_BODY 116 event[0].ident = (uintptr_t)pid; 117 event[0].filter = EVFILT_PROC; 118 event[0].flags = EV_ADD | EV_ENABLE; 119 event[0].fflags = NOTE_EXIT | NOTE_FORK | NOTE_EXEC; /* | NOTE_TRACK;*/ 122 RL(kevent(kq, event, 1, NULL, 0, NULL)); 126 RL(kevent(kq, NULL, 0, event, 1, NULL)); 127 printf("%ld:", (long)event[0].ident) [all...] |
t_empty.c | 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 32 #include <sys/event.h> 53 struct kevent event; local in function:test_empty 60 EV_SET(&event, writefd, EVFILT_EMPTY, EV_ADD, 0, 0, NULL); 61 ATF_REQUIRE(kevent(kq, &event, 1, NULL, 0, NULL) == 0); 64 memset(&event, 0, sizeof(event)); 65 ATF_REQUIRE(kevent(kq, NULL, 0, &event, 1, &ts) == 1); 66 ATF_REQUIRE(event.ident == (uintptr_t)writefd); 67 ATF_REQUIRE(event.filter == EVFILT_EMPTY) [all...] |
t_proc4.c | 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 32 #include <sys/event.h> 87 struct kevent event; local in function:ATF_TC_BODY 93 EV_SET(&event, getpid(), EVFILT_PROC, EV_ADD, 96 ATF_REQUIRE(kevent(kq, &event, 1, NULL, 0, NULL) == 0); 112 memset(&event, 0, sizeof(event)); 113 rv = kevent(kq, NULL, 0, &event, 1, NULL); 116 if (event.fflags & NOTE_CHILD) { 119 } else if (event.fflags & NOTE_EXIT) [all...] |
t_scan.c | 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 32 #include <sys/event.h> 57 struct kevent event; local in function:kevent_thread 61 rv = kevent(kq, NULL, 0, &event, 1, &ts); 86 struct kevent event; local in function:ATF_TC_BODY 92 EV_SET(&event, p[0], EVFILT_READ, EV_ADD, 0, 0, 0); 93 ATF_REQUIRE(kevent(kq, &event, 1, NULL, 0, NULL) == 0);
|
/src/tests/kernel/ |
t_epoll.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 94 struct epoll_event event; local in function:ATF_TC_BODY 97 event.events = EPOLLIN; 99 ATF_REQUIRE_EQ_MSG(epoll_ctl(-1, EPOLL_CTL_ADD, fd, &event), -1, 114 struct epoll_event event; local in function:ATF_TC_BODY 117 event.events = EPOLLIN; 119 ATF_REQUIRE_EQ_MSG(epoll_ctl(epfd, EPOLL_CTL_ADD, -1, &event), -1, 134 struct epoll_event event; local in function:ATF_TC_BODY 138 event.events = EPOLLIN; 140 RL(epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &event)); 157 struct epoll_event event; local in function:ATF_TC_BODY 182 struct epoll_event event; local in function:ATF_TC_BODY 199 struct epoll_event event; local in function:ATF_TC_BODY 220 struct epoll_event event; local in function:ATF_TC_BODY [all...] |
/src/regress/sys/kern/kqueue/vnode/ |
vnode.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 33 #include <sys/event.h> 49 struct kevent event[2]; local in function:main 75 EV_SET(&event[i], fd, EVFILT_VNODE, EV_ADD | EV_ENABLE | EV_CLEAR, 81 EV_SET(&event[i], fd, EVFILT_READ, EV_ADD | EV_ENABLE, 0, NULL, NULL); 86 n = kevent(kq, event, i, NULL, 0, NULL); 97 n = kevent(kq, NULL, 0, event, 1, &timeout); 112 event[0].filter, event[0].flags, event[0].fflags) [all...] |
/src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/core/ |
notify.h | 10 struct nvkm_event *event; member in struct:nvkm_notify
|
/src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/subdev/ |
gpio.h | 7 #include <core/event.h> 28 struct nvkm_event event; member in struct:nvkm_gpio
|
fault.h | 15 struct nvkm_event event; member in struct:nvkm_fault
|
/src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/ |
nouveau_nvkm_core_notify.c | 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 30 #include <core/event.h> 36 nvkm_event_put(notify->event, notify->types, notify->index); 42 struct nvkm_event *event = notify->event; local in function:nvkm_notify_put 44 if (likely(event) && 46 spin_lock_irqsave(&event->refs_lock, flags); 48 spin_unlock_irqrestore(&event->refs_lock, flags); 58 nvkm_event_get(notify->event, notify->types, notify->index); 64 struct nvkm_event *event = notify->event local in function:nvkm_notify_get 77 struct nvkm_event *event = notify->event; local in function:nvkm_notify_func 98 struct nvkm_event *event = notify->event; local in function:nvkm_notify_send [all...] |
/src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/sw/ |
chan.h | 8 #include <core/event.h> 19 struct nvkm_event event; member in struct:nvkm_sw_chan
|
/src/tests/kernel/kqueue/write/ |
t_fifo.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 76 struct kevent event[1]; local in function:ATF_TC_BODY 95 EV_SET(&event[0], wfd, EVFILT_WRITE, EV_ADD|EV_ENABLE, 0, 0, 0); 96 ATF_REQUIRE(kevent(kq, event, 1, NULL, 0, NULL) == 0); 99 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 1); 100 ATF_REQUIRE(event[0].ident == (uintptr_t)wfd); 101 ATF_REQUIRE(event[0].filter == EVFILT_WRITE); 114 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 0); 124 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 0) [all...] |
t_pipe.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 58 struct kevent event[1]; local in function:ATF_TC_BODY 66 EV_SET(&event[0], fds[1], EVFILT_WRITE, EV_ADD|EV_ENABLE, 0, 0, 0); 67 ATF_REQUIRE_EQ_MSG((n = kevent(kq, event, 1, NULL, 0, NULL)), 81 struct kevent event[1]; local in function:ATF_TC_BODY 91 EV_SET(&event[0], fds[1], EVFILT_WRITE, EV_ADD|EV_ENABLE, 0, 0, 0); 92 RL(kevent(kq, event, 1, NULL, 0, NULL)); 103 RL(n = kevent(kq, NULL, 0, event, 1, NULL)); 106 "%" PRId64 "\n", n, event[0].flags, event[0].fflags, event[0].data) 123 struct kevent event[1]; local in function:ATF_TC_BODY [all...] |
t_ttypty.c | 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 37 #include <sys/event.h> 57 struct kevent event[1]; local in function:h_check 86 EV_SET(&event[0], acurrent, EVFILT_WRITE, EV_ADD|EV_ENABLE, 0, 0, 0); 87 RL(kevent(kq, event, 1, NULL, 0, NULL)); 89 RL(n = kevent(kq, NULL, 0, event, 1, NULL)); 92 "%" PRId64 "\n", n, event[0].filter, event[0].flags, event[0].fflags, 93 event[0].data) [all...] |
/src/usr.sbin/tprof/arch/ |
tprof_armv7.c | 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 42 uint16_t event; member in struct:pmu_event 54 * Common event numbers, from ARM ARM. 137 param->p_event = tbl->events[n].event; 146 errx(EXIT_FAILURE, "event '%s' unknown", name);
|
tprof_armv8.c | 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 42 uint16_t event; member in struct:pmu_event 54 * Common event numbers, from ARMv8 ARM. 164 param->p_event = tbl->events[n].event; 173 errx(EXIT_FAILURE, "event '%s' unknown", name);
|
/src/sys/arch/evbarm/netwalker/ |
netwalker_lid.c | 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GENETEC CORPORATION 168 int event; local in function:netwalker_lid_refresh 171 event = (lid == GPIO_PIN_HIGH) ? 175 if(event == sc->sc_state) 178 sc->sc_state = event; 179 /* report the event */ 180 sysmon_pswitch_event(&sc->sc_smpsw, event);
|
netwalker_pwr.c | 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GENETEC CORPORATION 170 int event; local in function:netwalker_pwr_refresh 173 event = (pwr == GPIO_PIN_HIGH) ? 177 if(event == sc->sc_state) 180 sc->sc_state = event; 181 /* report the event */ 182 sysmon_pswitch_event(&sc->sc_smpsw, event);
|
/src/sys/dev/raidframe/ |
rf_revent.c | 29 * revent.c -- reconstruction event handling code 77 /* returns the next reconstruction event, blocking the calling thread 79 * or will return an event if it is not */ 86 RF_ReconEvent_t *event; local in function:rf_GetNextReconEvent 155 event = rctrl->eventQueue; 156 rctrl->eventQueue = event->next; 157 event->next = NULL; 163 return (event); 165 /* enqueues a reconstruction event on the indicated queue */ 171 RF_ReconEvent_t *event = GetReconEventDesc(raidPtr, col, arg, type) local in function:rf_CauseReconEvent 210 RF_ReconEvent_t *event; local in function:rf_DrainReconEventQueue [all...] |