Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/tools/usb/ffs-aio-example/simple/device_app/
H A Daio_simple.c280 int evfd; in main() local
333 evfd = eventfd(0, 0); in main()
334 if (evfd < 0) { in main()
348 FD_SET(evfd, &rfds); in main()
350 ret = select(((ep0 > evfd) ? ep0 : evfd)+1, in main()
367 if (FD_ISSET(evfd, &rfds)) { in main()
369 ret = read(evfd, &ev_cnt, sizeof(ev_cnt)); in main()
395 iocb_in->u.c.resfd = evfd; in main()
409 iocb_out->u.c.resfd = evfd; in main()
/OK3568_Linux_fs/kernel/tools/usb/ffs-aio-example/multibuff/device_app/
H A Daio_multibuff.c310 int evfd; in main() local
359 evfd = eventfd(0, 0); in main()
360 if (evfd < 0) { in main()
371 FD_SET(evfd, &rfds); in main()
373 ret = select(((ep0 > evfd) ? ep0 : evfd)+1, in main()
403 iobuf[i].iocb[j]->u.c.resfd = evfd; in main()
415 if (!FD_ISSET(evfd, &rfds)) in main()
419 ret = read(evfd, &ev_cnt, sizeof(ev_cnt)); in main()
/OK3568_Linux_fs/kernel/tools/testing/selftests/filesystems/epoll/
H A 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 …]