Lines Matching refs:ev_count
48 static unsigned ev_count = 0; variable
89 ev.data.ptr = &ev_fdinfo[ev_count]; in ev_init()
96 ev_fdinfo[ev_count].fd = fd; in ev_init()
97 ev_fdinfo[ev_count].cb = input_cb; in ev_init()
98 ev_fdinfo[ev_count].data = data; in ev_init()
99 ev_count++; in ev_init()
107 if (epollctlfail && !ev_count) { in ev_init()
127 ev.data.ptr = (void *)&ev_fdinfo[ev_count]; in ev_add_fd()
130 ev_fdinfo[ev_count].fd = fd; in ev_add_fd()
131 ev_fdinfo[ev_count].cb = cb; in ev_add_fd()
132 ev_fdinfo[ev_count].data = data; in ev_add_fd()
133 ev_count++; in ev_add_fd()
141 while (ev_count > 0) { in ev_exit()
142 close(ev_fdinfo[--ev_count].fd); in ev_exit()
150 npolledevents = epoll_wait(g_epoll_fd, polledevents, ev_count, timeout); in ev_wait()