On Thu, Dec 21, 2006 at 11:42:04AM -0500, jamal ([EMAIL PROTECTED]) wrote: > > > > Things like sockets/pipes can only benefit from direct kevent usage > > > > instead of ->poll() and wrappers. > > > > > > You should be able change it to use those schemes when it detects > > > that the kernel supports them. > > > > I.e. stat() for each new file descriptor - note, that _you_ asked it :) > > Didnt follow. Is there some issue with libevent you mean?
libevent provides file descriptor without any additional info about it - so when it is added into the waiting subsystem, userspace must select different usage cases (i.e. different kevent notifications for different types of file descriptor - socket notifications for sockets and pipes, poll/select for all others), this requires stat() call per provided file descriptor. Event addition/waiting itself is the same - only parameters (type and requested event) are changed. > cheers, > jamal -- Evgeniy Polyakov - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html