/freebsd-10.2-release/contrib/netbsd-tests/kernel/kqueue/ |
H A D | t_ioctl.c | 56 int i, kq; local 58 RL(kq = kqueue()); 65 RL(ioctl(kq, KFILTER_BYFILTER, &km)); 70 ATF_REQUIRE_EQ(ioctl(kq, KFILTER_BYFILTER, &km), -1); 93 int kq; local 95 RL(kq = kqueue()); 101 RL(ioctl(kq, KFILTER_BYNAME, &km)); 106 ATF_REQUIRE_EQ(ioctl(kq, KFILTER_BYNAME, &km), -1);
|
H A D | t_proc3.c | 60 int kq, status; local 64 RL(kq = kqueue()); 68 RL(kevent(kq, &ke, 1, NULL, 0, NULL)); 86 RL(kevent(kq, NULL, 0, &ke, 1, &timeout)); 87 RL(close(kq));
|
H A D | t_proc2.c | 93 int kq, status; local 97 RL(kq = kqueue()); 111 RL(kevent(kq, &ke, 1, NULL, 0, &timeout)); 119 RL(kevent(kq, NULL, 0, &ke, 1, &timeout)); 120 RL(close(kq));
|
H A D | t_proc1.c | 102 int kq, want, status; local 104 RL(kq = kqueue()); 121 RL(kevent(kq, event, 1, NULL, 0, NULL)); 125 RL(kevent(kq, NULL, 0, event, 1, NULL));
|
H A D | t_sig.c | 67 int kq, n, num, status; local 85 RL(kq = kqueue()); 89 RL(ioctl(kq, KFILTER_BYNAME, &km)); 99 RL(kevent(kq, event, 1, NULL, 0, NULL)); 110 RL(n = kevent(kq, NULL, 0, event, 1, &timeout));
|
/freebsd-10.2-release/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_kevent.c | 68 int kq; local 70 ATF_REQUIRE((kq = kqueue()) != -1); 72 ATF_REQUIRE(kevent(kq, &ev, 1, NULL, 0, NULL) != -1); 73 ATF_REQUIRE(kevent(kq, NULL, 0, &ev, 1, NULL) == 1); 86 int s[2], storage, status, kq; local 92 ATF_REQUIRE((kq = kqueue()) != -1); 118 bcopy(CMSG_DATA(msg), &kq, sizeof(kq)); local 119 printf("child (pid %d): received kq fd %d\n", getpid(), kq); 178 int fd, kq; local [all...] |
/freebsd-10.2-release/sys/kern/ |
H A D | kern_event.c | 75 * This lock is used if multiple kq locks are required. This possibly 95 static int kqueue_register(struct kqueue *kq, struct kevent *kev, 98 static void kqueue_release(struct kqueue *kq, int locked); 99 static int kqueue_expand(struct kqueue *kq, struct filterops *fops, 102 static int kqueue_scan(struct kqueue *kq, int maxevents, 106 static void kqueue_wakeup(struct kqueue *kq); 133 static int knote_attach(struct knote *kn, struct kqueue *kq); 204 #define KQ_LOCK(kq) do { \ 205 mtx_lock(&(kq)->kq_lock); \ 207 #define KQ_FLUX_WAKEUP(kq) d 309 struct kqueue *kq = kn->kn_fp->f_data; local 324 struct kqueue *kq = kn->kn_fp->f_data; local 333 struct kqueue *kq = kn->kn_fp->f_data; local 457 struct kqueue *kq; local 735 struct kqueue *kq; local 868 struct kqueue *kq; local 1014 kqueue_register(struct kqueue *kq, struct kevent *kev, struct thread *td, int waitok) argument 1239 struct kqueue *kq; local 1259 kqueue_release(struct kqueue *kq, int locked) argument 1273 kqueue_schedtask(struct kqueue *kq) argument 1296 kqueue_expand(struct kqueue *kq, struct filterops *fops, uintptr_t ident, int waitok) argument 1361 struct kqueue *kq; local 1385 kqueue_scan(struct kqueue *kq, int maxevents, struct kevent_copyops *k_ops, const struct timespec *tsp, struct kevent *keva, struct thread *td) argument 1671 struct kqueue *kq; local 1715 struct kqueue *kq = fp->f_data; local 1820 kqueue_wakeup(struct kqueue *kq) argument 1851 struct kqueue *kq; local 2110 struct kqueue *kq; local 2171 struct kqueue *kq; local 2209 knote_attach(struct knote *kn, struct kqueue *kq) argument 2239 struct kqueue *kq; local 2272 struct kqueue *kq = kn->kn_kq; local 2286 struct kqueue *kq = kn->kn_kq; local 2325 struct kqueue *kq; local [all...] |
/freebsd-10.2-release/lib/libc/sys/ |
H A D | kevent.c | 45 kevent(int kq, const struct kevent *changelist, int nchanges, argument 51 __libc_interposing[INTERPOS_kevent])(kq, changelist, nchanges,
|
/freebsd-10.2-release/contrib/netbsd-tests/kernel/kqueue/write/ |
H A D | t_pipe.c | 60 int kq, n; local 63 RL(kq = kqueue()); 67 ATF_REQUIRE_EQ_MSG((n = kevent(kq, event, 1, NULL, 0, NULL)), 84 int kq, n; local 89 RL(kq = kqueue()); 92 RL(kevent(kq, event, 1, NULL, 0, NULL)); 103 RL(n = kevent(kq, NULL, 0, event, 1, NULL)); 125 int kq; local 128 RL(kq = kqueue()); 131 RL(kevent(kq, even [all...] |
H A D | t_fifo.c | 63 int kq, n, fd, status; local 67 RL(kq = kqueue()); 79 RL(kevent(kq, event, 1, NULL, 0, NULL)); 82 RL(n = kevent(kq, NULL, 0, event, 1, NULL));
|
H A D | t_ttypty.c | 60 int status, kq, n; local 84 RL(kq = kqueue()); 87 RL(kevent(kq, event, 1, NULL, 0, NULL)); 89 RL(n = kevent(kq, NULL, 0, event, 1, NULL));
|
/freebsd-10.2-release/tools/regression/sockets/kqueue/ |
H A D | kqueue.c | 104 test_evfilt_read(int kq, int fd[2], const char *socktype) argument 113 if (kevent(kq, &ke, 1, NULL, 0, NULL) == -1) 122 i = kevent(kq, NULL, 0, &ke, 1, &ts); 148 i = kevent(kq, NULL, 0, &ke, 1, &ts); 173 i = kevent(kq, NULL, 0, &ke, 1, &ts); 183 if (kevent(kq, &ke, 1, NULL, 0, NULL) == -1) 189 test_evfilt_write(int kq, int fd[2], const char *socktype) argument 198 if (kevent(kq, &ke, 1, NULL, 0, NULL) == -1) 207 i = kevent(kq, NULL, 0, &ke, 1, &ts); 233 i = kevent(kq, NUL 255 int kq, sv[2]; local [all...] |
/freebsd-10.2-release/contrib/openbsm/bin/auditdistd/ |
H A D | subr.c | 192 int error, kq; local 200 kq = kqueue(); 201 if (kq == -1) { 207 if (kevent(kq, &ev, 1, NULL, 0, NULL) == -1) { 210 (void)close(kq); 214 wait_for_dir_kq = kq; 225 int error, kq; local 236 kq = kqueue(); 237 if (kq == -1) { 245 if (kevent(kq, e [all...] |
/freebsd-10.2-release/contrib/netbsd-tests/kernel/kqueue/read/ |
H A D | t_file2.c | 56 int fd1, fd2, kq; local 66 RL(kq = kqueue()); 69 RL(kevent(kq, event, 1, NULL, 0, NULL));
|
H A D | t_fifo.c | 60 int kq, n, fd; local 67 RL(kq = kqueue()); 70 RL(kevent(kq, event, 1, NULL, 0, NULL)); 78 RL(n = kevent(kq, NULL, 0, event, 1, NULL));
|
H A D | t_pipe.c | 56 int kq, n; local 59 RL(kq = kqueue()); 62 RL(kevent(kq, event, 1, NULL, 0, NULL)); 68 RL(n = kevent(kq, NULL, 0, event, 1, NULL));
|
H A D | t_file.c | 90 int fd, kq, n, num, status; local 104 RL(kq = kqueue()); 107 RL(kevent(kq, event, 1, NULL, 0, NULL)); 110 RL(n = kevent(kq, NULL, 0, event, 1, NULL));
|
H A D | t_ttypty.c | 58 int kq, n, status; local 98 RL(kq = kqueue()); 101 RL(kevent(kq, event, 1, NULL, 0, NULL)); 103 RL(n = kevent(kq, NULL, 0, event, 1, NULL));
|
/freebsd-10.2-release/tests/sys/mqueue/ |
H A D | mqtest4.c | 34 int kq, status; local 56 kq = kqueue(); 61 status = kevent(kq, &kev, 1, NULL, 0, NULL); 67 status = kevent(kq, NULL, 0, &kev, 1, NULL); 91 kq = kqueue(); 93 status = kevent(kq, &kev, 1, NULL, 0, NULL); 102 status = kevent(kq, NULL, 0, &kev, 1, NULL);
|
/freebsd-10.2-release/bin/pwait/ |
H A D | pwait.c | 66 int kq; local 90 kq = kqueue(); 91 if (kq == -1) 115 if (kevent(kq, e + nleft, 1, NULL, 0, NULL) == -1) 123 n = kevent(kq, NULL, 0, e, nleft, NULL);
|
/freebsd-10.2-release/lib/libproc/ |
H A D | _libproc.h | 40 int kq; /* Kernel event queue ID. */ member in struct:proc_handle
|
/freebsd-10.2-release/crypto/openssl/crypto/dsa/ |
H A D | dsa_ossl.c | 226 BIGNUM k, kq, *K, *kinv = NULL, *r = NULL; local 235 BN_init(&kq); 266 if (!BN_copy(&kq, &k)) 269 BN_set_flags(&kq, BN_FLG_CONSTTIME); 278 if (!BN_add(&kq, &kq, dsa->q)) 280 if (BN_num_bits(&kq) <= BN_num_bits(dsa->q)) { 281 if (!BN_add(&kq, &kq, dsa->q)) 285 K = &kq; [all...] |
/freebsd-10.2-release/usr.sbin/autofs/ |
H A D | autounmountd.c | 230 do_wait(int kq, double sleep_time) argument 242 nevents = kevent(kq, NULL, 0, &unused, 1, &timeout); 245 nevents = kevent(kq, NULL, 0, &unused, 1, NULL); 265 int ch, debug = 0, error, kq; local 322 kq = kqueue(); 323 if (kq < 0) 327 error = kevent(kq, &event, 1, NULL, 0, NULL); 347 do_wait(kq, sleep_time);
|
/freebsd-10.2-release/tests/sys/aio/ |
H A D | aio_kqueue_test.c | 65 int cancel, error, failed = 0, fd, kq, pending, result, run; local 71 kq = kqueue(); 72 if (kq < 0) { 108 iocb[i]->aio_sigevent.sigev_notify_kqueue = kq; 147 result = kevent(kq, NULL, 0,
|
/freebsd-10.2-release/contrib/pf/libevent/ |
H A D | kqueue.c | 69 int kq; member in struct:kqop 93 int kq; local 105 if ((kq = kqueue()) == -1) { 111 kqueueop->kq = kq; 136 if (kevent(kq, 144 close(kq); 220 res = kevent(kqop->kq, changes, kqop->nchanges, 409 if (kqop->kq) 410 close(kqop->kq); [all...] |