Lines Matching refs:pollfd
51 libusb10_add_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd,
57 if (pollfd->entry.tqe_prev != NULL)
63 pollfd->pdev = pdev;
64 pollfd->pollfd.fd = fd;
65 pollfd->pollfd.events = events;
68 TAILQ_INSERT_TAIL(&ctx->pollfds, pollfd, entry);
76 libusb10_remove_pollfd(libusb_context *ctx, struct libusb_super_pollfd *pollfd)
81 if (pollfd->entry.tqe_prev == NULL)
85 TAILQ_REMOVE(&ctx->pollfds, pollfd, entry);
86 pollfd->entry.tqe_prev = NULL;
90 ctx->fd_removed_cb(pollfd->pollfd.fd, ctx->fd_cb_user_data);
101 struct pollfd *fds;
125 fds[i].fd = pfd->pollfd.fd;
126 fds[i].events = pfd->pollfd.events;
431 struct libusb_super_pollfd *pollfd;
440 TAILQ_FOREACH(pollfd, &ctx->pollfds, entry)
448 TAILQ_FOREACH(pollfd, &ctx->pollfds, entry)
449 ret[i++] = &pollfd->pollfd;