lkml.org 
[lkml]   [2002]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[patch] sys_epoll ( 0.8 ) ...

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/

\
 
 \ /
  Last update: 2005-03-22 13:30    [W:0.090 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site