Searched refs:g_epoll_fd (Results 1 – 1 of 1) sorted by relevance
42 static int g_epoll_fd; variable59 g_epoll_fd = epoll_create(MAX_DEVICES + MAX_MISC_FDS); in ev_init()60 if (g_epoll_fd == -1) { in ev_init()90 if (epoll_ctl(g_epoll_fd, EPOLL_CTL_ADD, fd, &ev) == -1) { in ev_init()108 close(g_epoll_fd); in ev_init()109 g_epoll_fd = -1; in ev_init()117 return g_epoll_fd; in ev_get_epollfd()128 int ret = epoll_ctl(g_epoll_fd, EPOLL_CTL_ADD, fd, &ev); in ev_add_fd()146 close(g_epoll_fd); in ev_exit()150 npolledevents = epoll_wait(g_epoll_fd, polledevents, ev_count, timeout); in ev_wait()