Find what descriptors are registered within an epoll instance

view full story

http://stackoverflow.com – I'm wondering whether there is a way to find out what descriptors (and the expected events) are registered for a particular epoll instance using gdb or some other inspection tool? It's fairly easy to find it out when poll or select is used since all this information is freely available in the memory visible to a running process and can be explored in a debugger. However, epoll is somewhat different since it keeps all this data in kernel space. I realize, I can instrument my code with traces to know at every particular moment what events are expected by the epoll instance, but having some othe (HowTos)