Lines Matching refs:next_free_slot
51 static int next_free_slot = 0; variable
191 if (pollfds[next_free_slot].fd == -1) { in fpm_event_poll_add()
193 pollfds[next_free_slot].fd = ev->fd; in fpm_event_poll_add()
194 pollfds[next_free_slot].events = POLLIN; in fpm_event_poll_add()
197 ev->index = next_free_slot++; in fpm_event_poll_add()
198 if (next_free_slot >= npollfds) { in fpm_event_poll_add()
199 next_free_slot = 0; in fpm_event_poll_add()
216 ev->index = next_free_slot++; in fpm_event_poll_add()
217 if (next_free_slot >= npollfds) { in fpm_event_poll_add()
218 next_free_slot = 0; in fpm_event_poll_add()
238 next_free_slot = ev->index; in fpm_event_poll_remove()
259 next_free_slot = i; in fpm_event_poll_remove()