I'm trying to get libusb to work with epoll
instead of poll
, as I'm already using epoll in an application that needs scalability and will only be running on Linux. I'm wondering if the events
flags returned by libusb_get_pollfds
, which are intended for poll, are compatible with epoll.
Can the POLLIN
flag, for example, be registered with epoll
and achieve the same behavior as the EPOLLIN
flag, or do I need to map these event flags to their corresponding epoll version?