lkml.org 
[lkml]   [2006]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [take28-resend_1->0 0/8] kevent: Generic event handling mechanism.
On Thu, Dec 21, 2006 at 11:42:04AM -0500, jamal (hadi@cyberus.ca) 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 linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-12-21 17:55    [W:0.059 / U:0.628 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site