Lines Matching refs:index
161 …if (q->ev && q->ev->index >= 0 && q->ev->index < npollfds && q->ev->fd == active_pollfds[q->ev->in… in fpm_event_poll_wait()
164 if (active_pollfds[q->ev->index].revents & POLLIN) { in fpm_event_poll_wait()
197 ev->index = next_free_slot++; in fpm_event_poll_add()
216 ev->index = next_free_slot++; in fpm_event_poll_add()
236 if (ev->index >= 0 && ev->index < npollfds && pollfds[ev->index].fd == ev->fd) { in fpm_event_poll_remove()
238 next_free_slot = ev->index; in fpm_event_poll_remove()
241 pollfds[ev->index].fd = -1; in fpm_event_poll_remove()
242 pollfds[ev->index].events = 0; in fpm_event_poll_remove()
245 ev->index = -1; in fpm_event_poll_remove()
266 ev->index = -1; in fpm_event_poll_remove()
271 zlog(ZLOG_ERROR, "poll: unable to remove event: not found (fd=%d, index=%d)", ev->fd, ev->index); in fpm_event_poll_remove()