Home
last modified time | relevance | path

Searched refs:epoll_fd (Results 1 – 1 of 1) sorted by relevance

/system/core/adb/
Dfdevent.c110 static int epoll_fd = -1; variable
115 epoll_fd = epoll_create(256); in fdevent_init()
117 if(epoll_fd < 0) { in fdevent_init()
123 fcntl(epoll_fd, F_SETFD, FD_CLOEXEC); in fdevent_init()
135 if(epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fde->fd, &ev)) { in fdevent_connect()
155 epoll_ctl(epoll_fd, EPOLL_CTL_DEL, fde->fd, &ev); in fdevent_disconnect()
181 if(epoll_ctl(epoll_fd, EPOLL_CTL_MOD, fde->fd, &ev)) { in fdevent_update()
186 if(epoll_ctl(epoll_fd, EPOLL_CTL_DEL, fde->fd, &ev)) { in fdevent_update()
196 if(epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fde->fd, &ev)) { in fdevent_update()
210 n = epoll_wait(epoll_fd, events, 256, -1); in fdevent_process()