Searched refs:evfd (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/tools/usb/ffs-aio-example/simple/device_app/ |
D | aio_simple.c | 232 int evfd; in main() local 285 evfd = eventfd(0, 0); in main() 286 if (evfd < 0) { in main() 300 FD_SET(evfd, &rfds); in main() 302 ret = select(((ep0 > evfd) ? ep0 : evfd)+1, in main() 319 if (FD_ISSET(evfd, &rfds)) { in main() 321 ret = read(evfd, &ev_cnt, sizeof(ev_cnt)); in main() 347 iocb_in->u.c.resfd = evfd; in main() 361 iocb_out->u.c.resfd = evfd; in main()
|
/linux-6.6.21/tools/usb/ffs-aio-example/multibuff/device_app/ |
D | aio_multibuff.c | 244 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-6.6.21/tools/testing/selftests/filesystems/epoll/ |
D | epoll_wakeup_test.c | 3164 int evfd[EPOLL60_EVENTS_NR]; member 3232 pthread_t waiters[ARRAY_SIZE(ctx.evfd)]; in TEST() 3242 for (i = 0; i < ARRAY_SIZE(ctx.evfd); i++) { in TEST() 3243 ctx.evfd[i] = eventfd(0, EFD_NONBLOCK); in TEST() 3244 ASSERT_GE(ctx.evfd[i], 0); in TEST() 3247 e.data.fd = ctx.evfd[i]; in TEST() 3248 ASSERT_EQ(epoll_ctl(ctx.epfd, EPOLL_CTL_ADD, ctx.evfd[i], &e), 0); in TEST() 3261 ARRAY_SIZE(ctx.evfd)) in TEST() 3265 __atomic_fetch_sub(&ctx.ready, ARRAY_SIZE(ctx.evfd), in TEST() 3269 while (count_waiters(&ctx) != ARRAY_SIZE(ctx.evfd)) in TEST() [all …]
|