Re: [PATCH RFC 0/6] epoll: Introduce new syscall "epoll_mod_wait"

2015-01-21 Thread Fam Zheng
On Tue, 01/20 14:40, Andy Lutomirski wrote: > On Tue, Jan 20, 2015 at 1:57 AM, Fam Zheng wrote: > > This adds a new system call, epoll_mod_wait. It's described as below: > > > > NAME > >epoll_mod_wait - modify and wait for I/O events on an epoll file > > descriptor

Re: [PATCH RFC 0/6] epoll: Introduce new syscall "epoll_mod_wait"

2015-01-21 Thread Fam Zheng
On Tue, 01/20 13:48, Michael Kerrisk (man-pages) wrote: > Hello Fam Zheng, > > I know this API has been through a number of iterations, and there were > discussions about the design that led to it becoming more complex. > But, let us assume that someone has not seen those discussions, > or

Re: [PATCH RFC 0/6] epoll: Introduce new syscall epoll_mod_wait

2015-01-21 Thread Fam Zheng
On Tue, 01/20 13:48, Michael Kerrisk (man-pages) wrote: Hello Fam Zheng, I know this API has been through a number of iterations, and there were discussions about the design that led to it becoming more complex. But, let us assume that someone has not seen those discussions, or forgotten

Re: [PATCH RFC 0/6] epoll: Introduce new syscall epoll_mod_wait

2015-01-21 Thread Fam Zheng
On Tue, 01/20 14:40, Andy Lutomirski wrote: On Tue, Jan 20, 2015 at 1:57 AM, Fam Zheng f...@redhat.com wrote: This adds a new system call, epoll_mod_wait. It's described as below: NAME epoll_mod_wait - modify and wait for I/O events on an epoll file

Re: [PATCH RFC 0/6] epoll: Introduce new syscall "epoll_mod_wait"

2015-01-20 Thread Michael Kerrisk (man-pages)
On 01/20/2015 11:40 PM, Andy Lutomirski wrote: > On Tue, Jan 20, 2015 at 1:57 AM, Fam Zheng wrote: >> This adds a new system call, epoll_mod_wait. It's described as below: [...] >>There is no guartantee that all the commands are executed in order. >> Only >>if all the commands

Re: [PATCH RFC 0/6] epoll: Introduce new syscall "epoll_mod_wait"

2015-01-20 Thread josh
On Tue, Jan 20, 2015 at 02:40:32PM -0800, Andy Lutomirski wrote: > On Tue, Jan 20, 2015 at 1:57 AM, Fam Zheng wrote: > > This adds a new system call, epoll_mod_wait. It's described as below: > > > > NAME > >epoll_mod_wait - modify and wait for I/O events on an epoll file > >

Re: [PATCH RFC 0/6] epoll: Introduce new syscall "epoll_mod_wait"

2015-01-20 Thread Andy Lutomirski
On Tue, Jan 20, 2015 at 1:57 AM, Fam Zheng wrote: > This adds a new system call, epoll_mod_wait. It's described as below: > > NAME >epoll_mod_wait - modify and wait for I/O events on an epoll file > descriptor > > SYNOPSIS > >int epoll_mod_wait(int epfd,

Re: [PATCH RFC 0/6] epoll: Introduce new syscall "epoll_mod_wait"

2015-01-20 Thread Michael Kerrisk (man-pages)
Hello Fam Zheng, I know this API has been through a number of iterations, and there were discussions about the design that led to it becoming more complex. But, let us assume that someone has not seen those discussions, or forgotten them, or is too lazy to go hunting list archives. Then: this

Re: [PATCH RFC 0/6] epoll: Introduce new syscall "epoll_mod_wait"

2015-01-20 Thread Fam Zheng
On Tue, 01/20 11:37, Rasmus Villemoes wrote: > On Tue, Jan 20 2015, Fam Zheng wrote: > > > DESCRIPTION > > > >The epoll_mod_wait() system call can be seen as an enhanced > > combination > >of several epoll_ctl(2) calls, which are followed by an > > epoll_pwait(2) > >

Re: [PATCH RFC 0/6] epoll: Introduce new syscall "epoll_mod_wait"

2015-01-20 Thread Rasmus Villemoes
On Tue, Jan 20 2015, Fam Zheng wrote: > DESCRIPTION > >The epoll_mod_wait() system call can be seen as an enhanced combination >of several epoll_ctl(2) calls, which are followed by an epoll_pwait(2) >call. It is superior in two cases: > >1) When

[PATCH RFC 0/6] epoll: Introduce new syscall "epoll_mod_wait"

2015-01-20 Thread Fam Zheng
This adds a new system call, epoll_mod_wait. It's described as below: NAME epoll_mod_wait - modify and wait for I/O events on an epoll file descriptor SYNOPSIS int epoll_mod_wait(int epfd, int flags, int ncmds, struct epoll_mod_cmd

[PATCH RFC 0/6] epoll: Introduce new syscall epoll_mod_wait

2015-01-20 Thread Fam Zheng
This adds a new system call, epoll_mod_wait. It's described as below: NAME epoll_mod_wait - modify and wait for I/O events on an epoll file descriptor SYNOPSIS int epoll_mod_wait(int epfd, int flags, int ncmds, struct epoll_mod_cmd

Re: [PATCH RFC 0/6] epoll: Introduce new syscall epoll_mod_wait

2015-01-20 Thread Fam Zheng
On Tue, 01/20 11:37, Rasmus Villemoes wrote: On Tue, Jan 20 2015, Fam Zheng f...@redhat.com wrote: DESCRIPTION The epoll_mod_wait() system call can be seen as an enhanced combination of several epoll_ctl(2) calls, which are followed by an epoll_pwait(2)

Re: [PATCH RFC 0/6] epoll: Introduce new syscall epoll_mod_wait

2015-01-20 Thread Rasmus Villemoes
On Tue, Jan 20 2015, Fam Zheng f...@redhat.com wrote: DESCRIPTION The epoll_mod_wait() system call can be seen as an enhanced combination of several epoll_ctl(2) calls, which are followed by an epoll_pwait(2) call. It is superior in two cases: 1) When

Re: [PATCH RFC 0/6] epoll: Introduce new syscall epoll_mod_wait

2015-01-20 Thread Michael Kerrisk (man-pages)
Hello Fam Zheng, I know this API has been through a number of iterations, and there were discussions about the design that led to it becoming more complex. But, let us assume that someone has not seen those discussions, or forgotten them, or is too lazy to go hunting list archives. Then: this

Re: [PATCH RFC 0/6] epoll: Introduce new syscall epoll_mod_wait

2015-01-20 Thread josh
On Tue, Jan 20, 2015 at 02:40:32PM -0800, Andy Lutomirski wrote: On Tue, Jan 20, 2015 at 1:57 AM, Fam Zheng f...@redhat.com wrote: This adds a new system call, epoll_mod_wait. It's described as below: NAME epoll_mod_wait - modify and wait for I/O events on an epoll file

Re: [PATCH RFC 0/6] epoll: Introduce new syscall epoll_mod_wait

2015-01-20 Thread Andy Lutomirski
On Tue, Jan 20, 2015 at 1:57 AM, Fam Zheng f...@redhat.com wrote: This adds a new system call, epoll_mod_wait. It's described as below: NAME epoll_mod_wait - modify and wait for I/O events on an epoll file descriptor SYNOPSIS int epoll_mod_wait(int

Re: [PATCH RFC 0/6] epoll: Introduce new syscall epoll_mod_wait

2015-01-20 Thread Michael Kerrisk (man-pages)
On 01/20/2015 11:40 PM, Andy Lutomirski wrote: On Tue, Jan 20, 2015 at 1:57 AM, Fam Zheng f...@redhat.com wrote: This adds a new system call, epoll_mod_wait. It's described as below: [...] There is no guartantee that all the commands are executed in order. Only if all the