Greg Ames wrote:
the basic idea is to exploit the fact that the internal pfd_elem_t and apr_pollfd_t occupy the same chunk of memory. by twiddling the internal structure, the pointer to one is the pointer to both and no search is needed.
I'd suggest adding this comment to the source code; might save someone a bit of time in the future...
Bill