Searched refs:evfd (Results 1 – 2 of 2) sorted by relevance
/linux-4.4.14/tools/usb/ffs-aio-example/simple/device_app/ |
D | aio_simple.c | 214 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-4.4.14/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()
|