Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/usb/ffs-aio-example/simple/device_app/
H A 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()
[all...]
/kernel/linux/linux-6.6/tools/usb/ffs-aio-example/simple/device_app/
H A Daio_simple.c232 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()
[all...]
/kernel/linux/linux-5.10/tools/usb/ffs-aio-example/multibuff/device_app/
H A 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()
/kernel/linux/linux-6.6/tools/usb/ffs-aio-example/multibuff/device_app/
H A 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()
/kernel/linux/linux-5.10/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()
3287 int evfd; global() member
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/filesystems/epoll/
H A Depoll_wakeup_test.c3164 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()
3302 int evfd; global() member
[all...]

Completed in 9 milliseconds