/freebsd-11.0-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-11.0-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-11.0-release/sys/kern/ |
H A D | kern_event.c | 78 * This lock is used if multiple kq locks are required. This possibly 98 static int kqueue_register(struct kqueue *kq, struct kevent *kev, 101 static void kqueue_release(struct kqueue *kq, int locked); 102 static void kqueue_destroy(struct kqueue *kq); 103 static void kqueue_drain(struct kqueue *kq, struct thread *td); 104 static int kqueue_expand(struct kqueue *kq, struct filterops *fops, 107 static int kqueue_scan(struct kqueue *kq, int maxevents, 111 static void kqueue_wakeup(struct kqueue *kq); 137 static int knote_attach(struct knote *kn, struct kqueue *kq); 208 #define KQ_LOCK(kq) d 337 struct kqueue *kq = kn->kn_fp->f_data; local 352 struct kqueue *kq = kn->kn_fp->f_data; local 361 struct kqueue *kq = kn->kn_fp->f_data; local 489 struct kqueue *kq; local 814 kqueue_init(struct kqueue *kq) argument 827 struct kqueue *kq; local 982 kqueue_kevent(struct kqueue *kq, struct thread *td, int nchanges, int nevents, struct kevent_copyops *k_ops, const struct timespec *timeout) argument 1026 struct kqueue *kq; local 1045 struct kqueue kq = {}; local 1147 kqueue_register(struct kqueue *kq, struct kevent *kev, struct thread *td, int waitok) argument 1404 struct kqueue *kq; local 1424 kqueue_release(struct kqueue *kq, int locked) argument 1438 kqueue_schedtask(struct kqueue *kq) argument 1461 kqueue_expand(struct kqueue *kq, struct filterops *fops, uintptr_t ident, int waitok) argument 1526 struct kqueue *kq; local 1550 kqueue_scan(struct kqueue *kq, int maxevents, struct kevent_copyops *k_ops, const struct timespec *tsp, struct kevent *keva, struct thread *td) argument 1804 struct kqueue *kq; local 1845 kqueue_drain(struct kqueue *kq, struct thread *td) argument 1912 kqueue_destroy(struct kqueue *kq) argument 1933 struct kqueue *kq = fp->f_data; local 1977 kqueue_wakeup(struct kqueue *kq) argument 2008 struct kqueue *kq; local 2279 struct kqueue *kq; local 2341 struct kqueue *kq; local 2379 knote_attach(struct knote *kn, struct kqueue *kq) argument 2409 struct kqueue *kq; local 2442 struct kqueue *kq = kn->kn_kq; local 2456 struct kqueue *kq = kn->kn_kq; local 2496 struct kqueue *kq; local [all...] |
/freebsd-11.0-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-11.0-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-11.0-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-11.0-release/contrib/openbsm/bin/auditdistd/ |
H A D | subr.c | 190 int error, kq; local 198 kq = kqueue(); 199 if (kq == -1) { 205 if (kevent(kq, &ev, 1, NULL, 0, NULL) == -1) { 208 (void)close(kq); 212 wait_for_dir_kq = kq; 223 int error, kq; local 234 kq = kqueue(); 235 if (kq == -1) { 243 if (kevent(kq, e [all...] |
/freebsd-11.0-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-11.0-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-11.0-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-11.0-release/lib/libproc/ |
H A D | _libproc.h | 40 int kq; /* Kernel event queue ID. */ member in struct:proc_handle
|
/freebsd-11.0-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-11.0-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-11.0-release/tests/sys/aio/ |
H A D | aio_kqueue_test.c | 69 int failed = 0, fd, kq, pending, result, run; local 76 kq = kqueue(); 77 if (kq < 0) { 113 iocb[i]->aio_sigevent.sigev_notify_kqueue = kq; 154 result = kevent(kq, NULL, 0,
|
/freebsd-11.0-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...] |