mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Shailabh Nagar <nagar@watson.ibm.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Davide Libenzi <davidel@xmailserver.org>,
	Hanna Linder <hannal@us.ibm.com>,
	Benjamin LaHaise <bcrl@redhat.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-aio@kvack.org
Subject: Re: [PATCH] sys_epoll system call interface to /dev/epoll
Date: Fri, 18 Oct 2002 19:09:36 -0400	[thread overview]
Message-ID: <3DB094B0.2040400@watson.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0210181542140.1202-100000@home.transmeta.com>

Linus,

Apart from the multiple vs. single system call issue, are you okay with
the creation of an fd,file * etc. without having a device ?

The former issue could certainly be avoided by having multiple syscalls.
In fact, Davide had originally suggested an interface looking somewhat like
this:

	int sys_epoll_create(int maxfds);
	int sys_epoll_addfd(int epd, int fd);
	void sys_epoll_close(int epd);
	int sys_epoll_wait(int epd, struct pollfd **pevts, int timeout);
	
which is roughly what Hanna tried to multiplex onto the single sys_epoll. 	

-- Shailabh



Linus Torvalds wrote:
> On Fri, 18 Oct 2002, Davide Libenzi wrote:
> 
>>Linus, yesterday I was sugesting Hanna to use most of the existing code
>>and to make :
>>
>>int sys_epoll_create(int maxfds);
>>
>>to actually return an fd. Basically during this function call the code
>>allocates a file*, initialize it, allocates a free fd, maps the file* to
>>the fd, creates the vma* for the shared events area between the kernel and
>>user space, maps allocated kernel pages to the vma*, install the vma* and
>>returns the fd.
> 
> 
> But that's what her patch infrastructure seems to do. It's not just
> epoll_create(), it's all the other ioctl's too (unlink, remove etc). One
> queston is whether there is one epoll system call (that multiplexes, like
> in Hanna's patch) or many. I personally don't like multiplexing system
> calls - the system call number _is_ a multiplexor, I don't see the point 
> of having multiple levels.
> 
> 		Linus





  reply	other threads:[~2002-10-18 23:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-18 22:00 Hanna Linder
2002-10-18 22:05 ` Linus Torvalds
2002-10-18 22:45   ` Davide Libenzi
2002-10-18 22:51     ` Linus Torvalds
2002-10-18 23:09       ` Shailabh Nagar [this message]
2002-10-18 23:27         ` Linus Torvalds

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=3DB094B0.2040400@watson.ibm.com \
    --to=nagar@watson.ibm.com \
    --cc=bcrl@redhat.com \
    --cc=davidel@xmailserver.org \
    --cc=hannal@us.ibm.com \
    --cc=linux-aio@kvack.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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®