Home
last modified time | relevance | path

Searched refs:timerfd (Results 1 – 19 of 19) sorted by relevance

/freebsd/tests/sys/kern/
H A Dtimerfd.c32 #include <sys/timerfd.h>
67 wait_for_timerfd(int timerfd)
69 struct pollfd pfd = { .fd = timerfd, .events = POLLIN }; in wait_for_timerfd() argument
74 ssize_t r = read(timerfd, &timeouts, sizeof(timeouts)); in wait_for_timerfd()
84 int timerfd = timerfd_create(CLOCK_MONOTONIC, /**/ in ATF_TC_BODY()
87 ATF_REQUIRE(timerfd >= 0); in ATF_TC_BODY()
97 ATF_REQUIRE(timerfd_settime(timerfd, 0, &time, NULL) == 0); in ATF_TC_BODY()
98 (void)wait_for_timerfd(timerfd); in ATF_TC_BODY()
106 ATF_REQUIRE(close(timerfd) == 0); in ATF_TC_BODY()
112 int timerfd
86 int timerfd = timerfd_create(CLOCK_MONOTONIC, /**/ ATF_TC_BODY() local
114 int timerfd = timerfd_create(CLOCK_MONOTONIC, /**/ ATF_TC_BODY() local
153 int timerfd = timerfd_create(CLOCK_MONOTONIC, /**/ ATF_TC_BODY() local
194 int timerfd = timerfd_create(CLOCK_MONOTONIC, /**/ ATF_TC_BODY() local
237 int timerfd = timerfd_create(CLOCK_MONOTONIC, /**/ ATF_TC_BODY() local
367 int timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC); ATF_TC_BODY() local
412 int timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC); ATF_TC_BODY() local
507 int timerfd = timerfd_create(CLOCK_MONOTONIC, /**/ ATF_TC_BODY() local
560 int timerfd = timerfd_create(CLOCK_MONOTONIC, /**/ ATF_TC_BODY() local
616 int timerfd = timerfd_create(CLOCK_MONOTONIC, /**/ ATF_TC_BODY() local
666 int timerfd = timerfd_create(CLOCK_MONOTONIC, /**/ ATF_TC_BODY() local
720 int timerfd = timerfd_create(CLOCK_MONOTONIC, /**/ ATF_TC_BODY() local
750 int timerfd = timerfd_create(CLOCK_MONOTONIC, /**/ ATF_TC_BODY() local
843 int timerfd = timerfd_create(CLOCK_MONOTONIC, /**/ ATF_TC_BODY() local
882 int timerfd = timerfd_create(CLOCK_MONOTONIC, /**/ ATF_TC_BODY() local
921 int timerfd = timerfd_create(CLOCK_MONOTONIC, /**/ ATF_TC_BODY() local
957 int timerfd; ATF_TC_BODY() local
[all...]
H A DMakefile56 ATF_TESTS_C+= timerfd
57 LIBADD.timerfd+= pthread
/freebsd/sys/kern/
H A Dsys_timerfd.c61 static LIST_HEAD(, timerfd) timerfd_list;
62 MTX_SYSINIT(timerfd, &timerfd_list_lock, "timerfd_list_lock", MTX_DEF);
80 struct timerfd { struct
95 LIST_ENTRY(timerfd) entry; /* (l) entry in list */ argument
110 SYSINIT(timerfd, SI_SUB_VFS, SI_ORDER_ANY, timerfd_init, NULL); argument
122 timerfd_wakeup(struct timerfd *tfd) in timerfd_wakeup()
142 struct timerfd *tfd; in timerfd_jumped()
194 struct timerfd *tfd = fp->f_data; in timerfd_read()
262 struct timerfd *tfd = fp->f_data; in timerfd_poll()
279 struct timerfd *tfd = kn->kn_hook; in filt_timerfddetach()
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Depoll.c91 int timerfd; member
194 fd = epollop->timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK|TFD_CLOEXEC); in epoll_init()
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
425 if (epollop->timerfd >= 0) { in epoll_dispatch()
446 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
485 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
[all …]
H A Devent-config.h.cmake379 /* Define to 1 if you have the <sys/timerfd.h> header file. */
H A Dconfig.h.in344 /* Define to 1 if you have the <sys/timerfd.h> header file. */
H A Dconfigure.ac249 sys/timerfd.h \
H A DCMakeLists.txt414 sys/timerfd.h
H A DChangeLog1322 o When PRECISE_TIMERS is set with epoll, use timerfd for microsecond
1327 o Avoid giving a spurious warning when timerfd support is unavailable
/freebsd/contrib/libevent/
H A Depoll.c91 int timerfd; member
194 fd = epollop->timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK|TFD_CLOEXEC); in epoll_init()
195 if (epollop->timerfd >= 0) { in epoll_init()
198 epev.data.fd = epollop->timerfd; in epoll_init()
203 epollop->timerfd = -1; in epoll_init()
213 epollop->timerfd = -1; in epoll_init()
216 epollop->timerfd = -1; in epoll_init()
425 if (epollop->timerfd >= 0) { in epoll_dispatch()
446 if (timerfd_settime(epollop->timerfd, 0, &is, NULL) < 0) { in epoll_dispatch()
485 if (events[i].data.fd == epollop->timerfd) in epoll_dispatch()
[all …]
H A Devent-config.h.cmake379 /* Define to 1 if you have the <sys/timerfd.h> header file. */
H A Dconfig.h.in341 /* Define to 1 if you have the <sys/timerfd.h> header file. */
H A Dconfigure.ac249 sys/timerfd.h \
H A DCMakeLists.txt414 sys/timerfd.h
H A DChangeLog1322 o When PRECISE_TIMERS is set with epoll, use timerfd for microsecond
1327 o Avoid giving a spurious warning when timerfd support is unavailable
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dtest.sh153 -t - run timerfd test
155 -T - run timerfd+changelist test
161 timerfd=0
168 t) timerfd=1;;
177 [ $timerfd -eq 0 ] || do_test EPOLL "(timerfd)"
/freebsd/contrib/libevent/test/
H A Dtest.sh153 -t - run timerfd test
155 -T - run timerfd+changelist test
161 timerfd=0
168 t) timerfd=1;;
177 [ $timerfd -eq 0 ] || do_test EPOLL "(timerfd)"
/freebsd/lib/libsys/
H A DMakefile.sys375 timerfd.2 \
553 MLINKS+=timerfd.2 timerfd_create.2 \
554 timerfd.2 timerfd_gettime.2 \
555 timerfd.2 timerfd_settime.2
/freebsd/contrib/ntp/
H A DCommitLog[all...]