Home | History | Annotate | Download | only in libusb

Lines Matching refs:timerfd

34 #include <sys/timerfd.h>
645 * - Linux v2.6.27 or newer, compiled with timerfd support
1157 ctx->timerfd = timerfd_create(usbi_backend->get_timerfd_clockid(),
1159 if (ctx->timerfd >= 0) {
1160 usbi_dbg("using timerfd for timeouts");
1161 r = usbi_add_pollfd(ctx, ctx->timerfd, POLLIN);
1164 close(ctx->timerfd);
1168 usbi_dbg("timerfd not available (code %d error %d)", ctx->timerfd, errno);
1169 ctx->timerfd = -1;
1195 usbi_remove_pollfd(ctx, ctx->timerfd);
1196 close(ctx->timerfd);
1398 * rearm the timerfd with this transfer's timeout */
1401 usbi_dbg("arm timerfd for timeout in %dms (first in line)", transfer->timeout);
1402 r = timerfd_settime(ctx->timerfd, TFD_TIMER_ABSTIME, &it, NULL);
1462 r = timerfd_settime(ctx->timerfd, 0, &disarm_timer, NULL);
1469 /* iterates through the flying transfers, and rearms the timerfd based on the
1493 r = timerfd_settime(ctx->timerfd, TFD_TIMER_ABSTIME, &it, NULL);
1532 /* FIXME: could be more intelligent with the timerfd here. we don't need
1533 * to disarm the timerfd
1534 * to rearm the timerfd if the transfer that expired was the one with
2003 /* on timerfd configurations, fds[1] is the timerfd */
2005 /* timerfd indicates that a timeout has expired */
2007 usbi_dbg("timerfd triggered");
2020 * prevent OS backend from trying to handle events on timerfd */