mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Davide Libenzi <davidel@xmailserver.org>
To: Ulrich Drepper <drepper@redhat.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [PATCH] eventfd, signalfd, timerfd, epoll_create w/flags
Date: Sun, 27 Apr 2008 16:20:30 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0804271614240.18184@alien.or.mcafeemobile.com> (raw)
In-Reply-To: <200804272217.m3RMHZ0S021481@devserv.devel.redhat.com>

On Sun, 27 Apr 2008, Ulrich Drepper wrote:

> In the absence of sys_indirect we need the following patches as well.  These
> are all the event handling functions: epoll_create, signalfd, timerfd, eventd.
> 
> There is good news and bad.  The good news is that the timerfd interface
> already has a flags parameter.  We just have to put it to use.  It's IMO
> not a good idea to use the O_* values for any of the flag parameters so I
> introduced new macros for all the functions.
> 
> For signalfd and eventfd no flags parameter is available in the syscall.
> But for the userlevel interfaces I have added such a parameter back when.
> They are just required to be zero so far.  This means the new syscalls
> will completely transparently be used once glibc knows about them.
> Programs can start using the new flags and get told when the implementation
> doesn't support it.
> 
> The bad case is epoll_create.  Neither the kernel nor the userlevel interface
> has a flags parameter.  So we need a new, additional interface.  We could have
> one which differs from epoll_create only in that it returns a file descriptor
> with close-on-exec already set.  I don't like that.  Instead, the patch adds
> a new interface with a flags parameter.  More flexibility in future.

Ok, I asked this myself for about ten minutes, than I gave up. But why 
sys_epoll_createp() instead of sys_epoll_create2()? There MUST be a reason 
to deviate from the standard of all the other ones...
The one between sys_indirect and syscall explosion is the battle of the 
ugly.
Besides that, patches look fine to me (though w/out a very good reason, I 
prefer sys_epoll_create2() instead of sys_epoll_createp()).



- Davide



  reply	other threads:[~2008-04-27 23:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-27 22:17 Ulrich Drepper
2008-04-27 23:20 ` Davide Libenzi [this message]
2008-04-27 23:27   ` Ulrich Drepper
2008-04-27 23:31     ` H. Peter Anvin
2008-04-27 23:33       ` Ulrich Drepper
2008-04-27 23:38         ` H. Peter Anvin
2008-04-28  0:07     ` Davide Libenzi
2008-04-28  7:12   ` Michael Kerrisk

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=Pine.LNX.4.64.0804271614240.18184@alien.or.mcafeemobile.com \
    --to=davidel@xmailserver.org \
    --cc=akpm@linux-foundation.org \
    --cc=drepper@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.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

all inboxes | Powered by JetHome®