epoll_fd
if (pb->epoll_fd >= 0)
close(pb->epoll_fd);
pb->epoll_fd = epoll_create1(EPOLL_CLOEXEC);
if (pb->epoll_fd < 0) {
if (epoll_ctl(pb->epoll_fd, EPOLL_CTL_ADD, cpu_buf->fd,
return pb->epoll_fd;
cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, timeout_ms);
if (epoll_ctl(rb->epoll_fd, EPOLL_CTL_ADD, map_fd, e) < 0) {
if (rb->epoll_fd >= 0)
close(rb->epoll_fd);
rb->epoll_fd = epoll_create1(EPOLL_CLOEXEC);
if (rb->epoll_fd < 0) {
cnt = epoll_wait(rb->epoll_fd, rb->events, rb->ring_cnt, timeout_ms);
return rb->epoll_fd;
int epoll_fd;
if (rb->epoll_fd >= 0)
close(rb->epoll_fd);
if (epoll_ctl(rb->epoll_fd, EPOLL_CTL_ADD, map_fd, rb_epoll) < 0) {
int epoll_fd;
rb->epoll_fd = epoll_create1(EPOLL_CLOEXEC);
if (rb->epoll_fd < 0) {
cnt = epoll_wait(rb->epoll_fd, &rb->event, 1, ms_remaining);
ret = epoll_wait(td->epoll_fd, &td->epoll_ev, 1, -1);
td->epoll_fd = epoll_create(1);
BUG_ON(td->epoll_fd < 0);
BUG_ON(epoll_ctl(td->epoll_fd, EPOLL_CTL_ADD, td->pipe_read, &td->epoll_ev) < 0);
int epoll_fd;
ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, child->stdout, &ev);
static int epoll_fd;
ret = epoll_wait(epoll_fd, evs, tests, 0);
epoll_fd = ret;
ret = epoll_wait(epoll_fd, evs, tests, poll_interval);
ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, child->stdout, &ev);
ret = epoll_wait(epoll_fd, evs, tests, 0);
static int epoll_fd;
epoll_fd = ret;
ret = epoll_wait(epoll_fd, evs, tests, 100);
int epoll_fd;
ctx->epoll_fd = epoll_create1(EPOLL_CLOEXEC);
if (ctx->epoll_fd < 0) {
err = epoll_ctl(ctx->epoll_fd, EPOLL_CTL_ADD, r->map_fd, &ctx->event);
cnt = epoll_wait(ctx->epoll_fd, &ctx->event, 1, -1);
int epoll_fd; /* perf event FD */
cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, -1);
epoll_fd = epoll_create1(EPOLL_CLOEXEC);
if (epoll_fd < 0) {
if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, nl_sock, &evn) < 0) {
*efd = epoll_fd;
int handle_events(int epoll_fd, struct proc_event *pev)
event_count = epoll_wait(epoll_fd, ev, MAX_EVENTS, -1);
int epoll_fd, err;
err = register_proc_netlink(&epoll_fd, (void*)&input);
err = register_proc_netlink(&epoll_fd, (void*)&op);
close(epoll_fd);
err = handle_events(epoll_fd, &proc_ev);
close(epoll_fd);
close(epoll_fd);
int err = 0, epoll_fd;
self->epoll_fd[i] = epoll_create1(0);
ASSERT_GE(self->epoll_fd[i], 0);
ret = epoll_ctl(self->epoll_fd[i], EPOLL_CTL_ADD, self->fd[i * 2 + 1], &event);
ret[i] = epoll_wait(self->epoll_fd[i], &event[i], 1, 0);
int epoll_fd[2]; /* 0: AF_UNIX receiver
int epoll_fd = epoll_create1(EPOLL_CLOEXEC);
if (epoll_fd == -1)
if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, pidfd, &event)) {
c = epoll_wait(epoll_fd, events, MAX_EVENTS, 5000);
close(epoll_fd);