Home
last modified time | relevance | path

Searched refs:kqueue_fd (Results 1 – 2 of 2) sorted by relevance

/freebsd/tests/sys/fifo/
H A Dfifo_io.c912 kqueue_setup(int kqueue_fd, int fd, const char *testname) in kqueue_setup() argument
927 ret = kevent(kqueue_fd, kevent_changelist, 2, kevent_eventlist, in kqueue_setup()
951 kqueue_status(int kqueue_fd, int fd, int *readable, int *writable, in kqueue_status() argument
961 ret = kevent(kqueue_fd, NULL, 0, kevent_eventlist, KQUEUE_MAX_EVENT, in kqueue_status()
1008 assert_status(int fd, int kqueue_fd, int assert_readable, in assert_status() argument
1034 if (kqueue_status(kqueue_fd, fd, &readable, &writable, &exception, in assert_status()
1069 int kqueue_fd, reader_fd, writer_fd; in test_events_outofbox() local
1078 kqueue_fd = kqueue(); in test_events_outofbox()
1079 if (kqueue_fd < 0) { in test_events_outofbox()
1085 if (kqueue_setup(kqueue_fd, reader_fd, __func__) < 0) { in test_events_outofbox()
[all …]
/freebsd/usr.sbin/daemon/
H A Ddaemon.c89 int kqueue_fd; member
349 state.kqueue_fd = daemon_setup_kqueue(); in main()
415 kq = state->kqueue_fd; in daemon_eventloop()
552 if (kevent(state->kqueue_fd, &event, 1, NULL, 0, NULL) == -1) { in daemon_sleep()
557 ret = kevent(state->kqueue_fd, NULL, 0, &event, 1, NULL); in daemon_sleep()
796 .kqueue_fd = -1, in daemon_state_init()
817 if (state->kqueue_fd >= 0) { in daemon_terminate()
818 close(state->kqueue_fd); in daemon_terminate()