Lines Matching refs:curEpollEvent
92 struct epoll_event *curEpollEvent; in MainLoop() local
108 for (i = 0, curEpollEvent = &events[0]; i < nevents; ++i, curEpollEvent++) { in MainLoop()
109 if (curEpollEvent->events & EPOLLHUP) { in MainLoop()
111 HandleEventEpollHup(curEpollEvent); in MainLoop()
114 if (curEpollEvent->events & EPOLLERR) { in MainLoop()
118 if ((curEpollEvent->events & EPOLLPRI) && curEpollEvent->data.fd == kswapdMonitorFd_) { in MainLoop()
125 void KswapdObserver::HandleEventEpollHup(struct epoll_event *curEpollEvent) in HandleEventEpollHup() argument
127 if (epoll_ctl(epollfd_, EPOLL_CTL_DEL, curEpollEvent->data.fd, NULL) < 0) { in HandleEventEpollHup()
130 if (curEpollEvent->data.fd >= 0) { in HandleEventEpollHup()
131 close(curEpollEvent->data.fd); in HandleEventEpollHup()
133 if (curEpollEvent->data.fd == kswapdMonitorFd_) { in HandleEventEpollHup()