Searched refs:timerfd (Results 1 - 6 of 6) sorted by relevance

/external/chromium_org/third_party/libusb/src/libusb/
H A Dio.c35 #include <sys/timerfd.h>
607 * On some platforms a timerfd is used, so the timeout handling is just another
703 * - Linux v2.6.27 or newer, compiled with timerfd support
1143 ctx->timerfd = timerfd_create(usbi_backend->get_timerfd_clockid(),
1145 if (ctx->timerfd >= 0) {
1146 usbi_dbg("using timerfd for timeouts");
1147 r = usbi_add_pollfd(ctx, ctx->timerfd, POLLIN);
1150 close(ctx->timerfd);
1154 usbi_dbg("timerfd not available (code %d error %d)", ctx->timerfd, errn
[all...]
H A Dlibusbi.h277 * this timerfd is maintained to trigger on the next pending timeout */
278 int timerfd; member in struct:libusb_context
285 #define usbi_using_timerfd(ctx) ((ctx)->timerfd >= 0)
968 /* clock ID of the clock that should be used for timerfd */
/external/libusb/libusb/
H A Dio.c34 #include <sys/timerfd.h>
641 * - Linux v2.6.27 or newer, compiled with timerfd support
1027 ctx->timerfd = timerfd_create(usbi_backend->get_timerfd_clockid(),
1029 if (ctx->timerfd >= 0) {
1030 usbi_dbg("using timerfd for timeouts");
1031 r = usbi_add_pollfd(ctx, ctx->timerfd, POLLIN);
1033 close(ctx->timerfd);
1037 usbi_dbg("timerfd not available (code %d error %d)", ctx->timerfd, errno);
1038 ctx->timerfd
[all...]
H A Dlibusbi.h193 * this timerfd is maintained to trigger on the next pending timeout */
194 int timerfd; member in struct:libusb_context
199 #define usbi_using_timerfd(ctx) ((ctx)->timerfd >= 0)
777 /* clock ID of the clock that should be used for timerfd */
/external/linux-tools-perf/perf-3.12.0/tools/perf/
H A Dbuiltin-kvm.c22 #include <sys/timerfd.h>
116 int timerfd; member in struct:perf_kvm_stat
974 kvm->timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK);
975 if (kvm->timerfd < 0) {
985 if (timerfd_settime(kvm->timerfd, 0, &new_value, NULL) != 0) {
987 close(kvm->timerfd);
1001 rc = read(kvm->timerfd, &c, sizeof(uint64_t));
1094 /* copy pollfds -- need to add timerfd and stdin */
1110 pollfds[nr_fds].fd = kvm->timerfd;
1150 if (kvm->timerfd >
[all...]
/external/libusb/
H A Dconfigure1521 --enable-timerfd use timerfd for timing (default auto)
10751 # timerfd
10752 ac_fn_c_check_header_mongrel "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
10760 # Check whether --enable-timerfd was given.
10769 as_fn_error "timerfd header not available; glibc 2.9+ required" "$LINENO" 5
10772 ac_fn_c_check_decl "$LINENO" "TFD_NONBLOCK" "ac_cv_have_decl_TFD_NONBLOCK" "#include <sys/timerfd.h>
10781 as_fn_error "timerfd header not usable; glibc 2.9+ required" "$LINENO" 5
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use timerfd for timing" >&5
10785 $as_echo_n "checking whether to use timerfd fo
[all...]

Completed in 2701 milliseconds