public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Edgar Toernig <froese@gmx.de>
To: Davide Libenzi <davidel@xmailserver.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [rfc] epoll interface change and glibc bits ...
Date: Tue, 19 Nov 2002 04:46:00 +0100	[thread overview]
Message-ID: <3DD9B3F8.DC291106@gmx.de> (raw)
In-Reply-To: Pine.LNX.4.44.0211181533501.979-100000@blue1.dev.mcafeelabs.com

Davide Libenzi wrote:
> 
> http://www.xmailserver.org/linux-patches/epoll.2
> http://www.xmailserver.org/linux-patches/epoll_create.2
> http://www.xmailserver.org/linux-patches/epoll_ctl.2
> http://www.xmailserver.org/linux-patches/epoll_wait.2
> 
> it is going to change though with the latest talks about the interface.

My 2 cents:

Remove the waitqueue stuff from epoll.2.  It has meaning only to
linux kernel developers and noone else.

Please add more semantic details of the new facility.  It is new
and these man pages are the only (and normative) reference.  I.e.:

What about adding an fd twice to the epoll-set?  Do you get an
error, will it override the previous settings for that fd, will
it be ignored, or is it registered twice and you get two results
for that fd?  Can two epoll-sets wait for the same fd?  Are events
reported to both epoll-fds?

Is the epoll-fd itself poll/epoll/selectable?  Can I build cluster
of epoll-sets?  What happens if the epollfd is put into its own
fd set?  Can I send the epoll-fd over a unix-socket to another
process?

Then, please add more details of how events are generated.  You
say, that an inactive-to-active transition causes an event.  What
is the starting point of the collection?  (I guess, all transitions
between two epoll_wait calls.)  There could be a couple of transi-
tions on an fd between two epoll_wait calls.  Are these events com-
bined into a single reported event or is each single edge reported?
Does an operation on an fd effect the already collected but not yet
reported events?

About epoll_wait: it looks like a "read with timeout" call.  Is that
really necessary or wouldn't a normal read(2) work as well?  Similar
for epoll_ctl: couldn't a write(2) to the epoll-fd do the same?

That are the things that come into my mind at the moment.  I guess
there are more details I've missed...

Ciao, ET.

  parent reply	other threads:[~2002-11-19  3:39 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-18 22:21 [rfc] epoll interface change and glibc bits Dan Kegel
2002-11-18 23:09 ` Davide Libenzi
2002-11-18 23:39   ` Dan Kegel
2002-11-18 23:20     ` Davide Libenzi
2002-11-18 23:52       ` Dan Kegel
2002-11-18 23:35         ` Davide Libenzi
2002-11-19  0:53           ` Dan Kegel
2002-11-19  1:34             ` Davide Libenzi
2002-11-19  2:08               ` Dan Kegel
2002-11-19  2:04                 ` Davide Libenzi
2002-11-19  3:46           ` Edgar Toernig [this message]
2002-11-19  4:14             ` Davide Libenzi
2002-11-19  5:35               ` Edgar Toernig
2002-11-19  6:09                 ` Mark Mielke
2002-11-19 17:07                   ` Davide Libenzi
2002-11-20  1:59                 ` Davide Libenzi
2002-11-20  3:09                   ` Jamie Lokier
2002-11-20  3:46                     ` Davide Libenzi
2002-11-20  4:04                     ` Davide Libenzi
2002-11-20  8:01                       ` Mark Mielke
2002-11-20 23:19                         ` Davide Libenzi
2002-11-20 23:51                           ` Mark Mielke
2002-11-20 23:57                             ` Davide Libenzi
2002-11-21  0:28                               ` Jamie Lokier
2002-11-21  1:23                                 ` Mark Mielke
2002-11-21  1:20                                   ` Davide Libenzi
2002-11-21  0:33                               ` Mark Mielke
2002-11-21  0:55                                 ` Jamie Lokier
2002-11-21  1:04                                   ` Davide Libenzi
2002-11-21 20:08                                 ` Denis Vlasenko
2002-11-21 16:51                                   ` Mark Mielke
2002-11-21 17:45                                     ` Davide Libenzi
2002-11-20 22:04                       ` Jamie Lokier
2002-11-20 22:08                         ` Davide Libenzi
2002-11-20 23:28                           ` Jamie Lokier
2002-11-20 23:33                             ` Davide Libenzi
2002-11-20  7:47                     ` Mark Mielke
2002-11-19  3:53         ` Mark Mielke
  -- strict thread matches above, loose matches on Subject: below --
2002-11-19 19:33 Grant Taylor
2002-11-19 19:51 ` Davide Libenzi
2002-11-19 20:57   ` Mark Mielke
2002-11-19 20:54     ` Davide Libenzi
2002-11-19 17:28 Dan Kegel
2002-11-19  5:49 Grant Taylor
2002-11-19  6:22 ` Mark Mielke
2002-11-19 15:24   ` Jamie Lokier
     [not found] <20021118223125.GB14649@mark.mielke.cc>
2002-11-19  0:23 ` Grant Taylor
2002-11-19  3:58   ` Davide Libenzi
2002-11-19  4:04   ` Mark Mielke
2002-11-18 22:04 Grant Taylor
2002-11-18 22:32 ` Mark Mielke
2002-11-18 23:07 ` Davide Libenzi
2002-11-18 18:40 Grant Taylor
2002-11-18 16:05 Davide Libenzi
2002-11-18 16:12 ` Jakub Jelinek
2002-11-18 16:15   ` Davide Libenzi
2002-11-18 16:18     ` Jakub Jelinek
2002-11-18 16:32       ` Davide Libenzi
2002-11-18 22:22         ` Matthew D. Hall
2002-11-18 17:51 ` Mark Mielke
2002-11-18 18:37   ` Davide Libenzi
2002-11-18 19:59     ` Ulrich Drepper
2002-11-18 21:31       ` Davide Libenzi
2002-11-18 22:56         ` Jamie Lokier
2002-11-18 23:56           ` Davide Libenzi
2002-11-19  1:34             ` Jamie Lokier
2002-11-19  1:50               ` Davide Libenzi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DD9B3F8.DC291106@gmx.de \
    --to=froese@gmx.de \
    --cc=davidel@xmailserver.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox