LWN.net Logo

sys_epoll ( 0.8 ) ...

From:  Davide Libenzi <davidel@xmailserver.org>
To:  Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject:  [patch] sys_epoll ( 0.8 ) ...
Date:  Wed, 23 Oct 2002 20:32:39 -0700 (PDT)


The updated version ( 0.8 ) of the sys_epoll patch is available here :

http://www.xmailserver.org/linux-patches/nio-improve.html#patches

Changes :

*) Suggestions/bug-fixes from Andrew

*) More robust interface from bad user parameters

*) The shared memory area for events is now seen with PROT_READ from the
	user. Users of the old /dev/epoll interface will have to mmap() it
	using PROT_READ if they don't want to receive an EACCES

To be decieded :

*) Adding an "int minevents" parameter to sys_epoll_wait() to let the
	caller to specify the minimum number of events that he'll expect
	returned by the wait call in the given timeout

*) Making sys_epoll_wait() to return a new event structure :

	struct sys_epoll_event {
		int fd;
		unsigned int revents;
		void *priv;
	};

	to be able to let the caller to specify his own private data. This
	will avoid applications to perform lookups using the fd and will
	also better optimize the returned data by removing the unused
	"events" field




- Davide


-
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/

Copyright © 2002, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds