Lines Matching refs:efd_count
202 eventfd_t efd_count;
698 efd->efd_count = initval;
770 if (efd->efd_count == 0) {
775 error = mtx_sleep(&efd->efd_count, &efd->efd_lock, PCATCH, "lefdrd", 0);
782 --efd->efd_count;
784 count = efd->efd_count;
785 efd->efd_count = 0;
789 wakeup(&efd->efd_count);
821 if (UINT64_MAX - efd->efd_count <= count) {
828 error = mtx_sleep(&efd->efd_count, &efd->efd_lock,
834 efd->efd_count += count;
837 wakeup(&efd->efd_count);
856 if ((events & (POLLIN|POLLRDNORM)) && efd->efd_count > 0)
858 if ((events & (POLLOUT|POLLWRNORM)) && UINT64_MAX - 1 > efd->efd_count)
915 ret = (efd->efd_count > 0);
928 ret = (UINT64_MAX - 1 > efd->efd_count);