Searched refs:evfd (Results 1 - 3 of 3) sorted by relevance

/linux-master/tools/usb/ffs-aio-example/simple/device_app/
H A Daio_simple.c232 int evfd; local
285 evfd = eventfd(0, 0);
286 if (evfd < 0) {
300 FD_SET(evfd, &rfds);
302 ret = select(((ep0 > evfd) ? ep0 : evfd)+1,
319 if (FD_ISSET(evfd, &rfds)) {
321 ret = read(evfd, &ev_cnt, sizeof(ev_cnt));
347 iocb_in->u.c.resfd = evfd;
361 iocb_out->u.c.resfd = evfd;
[all...]
/linux-master/tools/usb/ffs-aio-example/multibuff/device_app/
H A Daio_multibuff.c244 int evfd; local
293 evfd = eventfd(0, 0);
294 if (evfd < 0) {
305 FD_SET(evfd, &rfds);
307 ret = select(((ep0 > evfd) ? ep0 : evfd)+1,
337 iobuf[i].iocb[j]->u.c.resfd = evfd;
349 if (!FD_ISSET(evfd, &rfds))
353 ret = read(evfd, &ev_cnt, sizeof(ev_cnt));
/linux-master/tools/testing/selftests/filesystems/epoll/
H A Depoll_wakeup_test.c3164 int evfd[EPOLL60_EVENTS_NR]; member in struct:epoll60_ctx
3232 pthread_t waiters[ARRAY_SIZE(ctx.evfd)];
3242 for (i = 0; i < ARRAY_SIZE(ctx.evfd); i++) {
3243 ctx.evfd[i] = eventfd(0, EFD_NONBLOCK);
3244 ASSERT_GE(ctx.evfd[i], 0);
3247 e.data.fd = ctx.evfd[i];
3248 ASSERT_EQ(epoll_ctl(ctx.epfd, EPOLL_CTL_ADD, ctx.evfd[i], &e), 0);
3261 ARRAY_SIZE(ctx.evfd))
3265 __atomic_fetch_sub(&ctx.ready, ARRAY_SIZE(ctx.evfd),
3269 while (count_waiters(&ctx) != ARRAY_SIZE(ctx.evfd))
3302 int evfd; member in struct:epoll61_ctx
[all...]

Completed in 116 milliseconds