Home | History | Annotate | Download | only in runtime

Lines Matching refs:epfd

15 func epollctl(epfd, op, fd int32, ev *epollevent) int32
18 func epollwait(epfd int32, ev *epollevent, nev, timeout int32) int32
22 epfd int32 = -1 // epoll descriptor
26 epfd = epollcreate1(_EPOLL_CLOEXEC)
27 if epfd >= 0 {
30 epfd = epollcreate(1024)
31 if epfd >= 0 {
32 closeonexec(epfd)
35 println("netpollinit: failed to create epoll descriptor", -epfd)
43 return -epollctl(epfd, _EPOLL_CTL_ADD, int32(fd), &ev)
48 return -epollctl(epfd, _EPOLL_CTL_DEL, int32(fd), &ev)
58 if epfd == -1 {
67 n := epollwait(epfd, &events[0], int32(len(events)), waitms)
70 println("runtime: epollwait on fd", epfd, "failed with", -n)