Lines Matching refs:eptimerfd
544 c->eptimerfd = timerfd_create(CLOCK_REALTIME, TFD_NONBLOCK); in coap_new_context()
545 if (c->eptimerfd == -1) { in coap_new_context()
561 ret = epoll_ctl(c->epfd, EPOLL_CTL_ADD, c->eptimerfd, &event); in coap_new_context()
670 if (context->eptimerfd != -1) { in coap_free_context()
675 ret = epoll_ctl(context->epfd, EPOLL_CTL_DEL, context->eptimerfd, &event); in coap_free_context()
682 close(context->eptimerfd); in coap_free_context()
683 context->eptimerfd = -1; in coap_free_context()
1023 if (context->eptimerfd != -1) { in coap_wait_ack()
1036 ret = timerfd_settime(context->eptimerfd, 0, &new_value, NULL); in coap_wait_ack()
1871 else if (ctx->eptimerfd != -1) { in coap_io_do_epoll()
1880 if (read(ctx->eptimerfd, &count, sizeof(count)) == -1) { in coap_io_do_epoll()