Home
last modified time | relevance | path

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

/Linux-v5.10/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c214 int evfd; in main() local
267 evfd = eventfd(0, 0); in main()
268 if (evfd < 0) { in main()
282 FD_SET(evfd, &rfds); in main()
284 ret = select(((ep0 > evfd) ? ep0 : evfd)+1, in main()
301 if (FD_ISSET(evfd, &rfds)) { in main()
303 ret = read(evfd, &ev_cnt, sizeof(ev_cnt)); in main()
329 iocb_in->u.c.resfd = evfd; in main()
343 iocb_out->u.c.resfd = evfd; in main()
/Linux-v5.10/tools/usb/ffs-aio-example/multibuff/device_app/
Daio_multibuff.c244 int evfd; in main() local
293 evfd = eventfd(0, 0); in main()
294 if (evfd < 0) { in main()
305 FD_SET(evfd, &rfds); in main()
307 ret = select(((ep0 > evfd) ? ep0 : evfd)+1, in main()
337 iobuf[i].iocb[j]->u.c.resfd = evfd; in main()
349 if (!FD_ISSET(evfd, &rfds)) in main()
353 ret = read(evfd, &ev_cnt, sizeof(ev_cnt)); in main()
/Linux-v5.10/tools/testing/selftests/filesystems/epoll/
Depoll_wakeup_test.c3149 int evfd[EPOLL60_EVENTS_NR]; member
3217 pthread_t waiters[ARRAY_SIZE(ctx.evfd)]; in TEST()
3227 for (i = 0; i < ARRAY_SIZE(ctx.evfd); i++) { in TEST()
3228 ctx.evfd[i] = eventfd(0, EFD_NONBLOCK); in TEST()
3229 ASSERT_GE(ctx.evfd[i], 0); in TEST()
3232 e.data.fd = ctx.evfd[i]; in TEST()
3233 ASSERT_EQ(epoll_ctl(ctx.epfd, EPOLL_CTL_ADD, ctx.evfd[i], &e), 0); in TEST()
3246 ARRAY_SIZE(ctx.evfd)) in TEST()
3250 __atomic_fetch_sub(&ctx.ready, ARRAY_SIZE(ctx.evfd), in TEST()
3254 while (count_waiters(&ctx) != ARRAY_SIZE(ctx.evfd)) in TEST()
[all …]