Lines Matching refs:ev_count
50 static unsigned ev_count = 0; variable
90 ev.data.ptr = (void *)&ev_fdinfo[ev_count]; in ev_init()
97 ev_fdinfo[ev_count].fd = fd; in ev_init()
98 ev_fdinfo[ev_count].cb = input_cb; in ev_init()
99 ev_fdinfo[ev_count].data = data; in ev_init()
100 ev_count++; in ev_init()
106 if (epollctlfail && !ev_count) { in ev_init()
124 ev.data.ptr = (void *)&ev_fdinfo[ev_count]; in ev_add_fd()
127 ev_fdinfo[ev_count].fd = fd; in ev_add_fd()
128 ev_fdinfo[ev_count].cb = cb; in ev_add_fd()
129 ev_fdinfo[ev_count].data = data; in ev_add_fd()
130 ev_count++; in ev_add_fd()
144 while (ev_count > 0) { in ev_exit()
145 close(ev_fdinfo[--ev_count].fd); in ev_exit()
154 npolledevents = epoll_wait(epollfd, polledevents, ev_count, timeout); in ev_wait()