Re: [take3 1/4] kevent: Core files.

2006-08-03 Thread David Miller
From: Evgeniy Polyakov <[EMAIL PROTECTED]> Date: Thu, 3 Aug 2006 18:55:57 +0400 > I would not call that wrong - system prevents some threads from removing > kevents which are counted to be transfered to the userspace, i.e. when > dequeuing was awakened and it had seen some events it is possible,

Re: [take3 1/4] kevent: Core files.

2006-08-03 Thread Evgeniy Polyakov
On Thu, Aug 03, 2006 at 05:11:58PM +0200, Eric Dumazet ([EMAIL PROTECTED]) wrote: > On Thursday 03 August 2006 16:55, Evgeniy Polyakov wrote: > > On Thu, Aug 03, 2006 at 04:40:34PM +0200, Eric Dumazet ([EMAIL PROTECTED]) > wrote: > > > > + mutex_lock(&u->ctl_mutex); > > > > + while (n

Re: [take3 1/4] kevent: Core files.

2006-08-03 Thread Eric Dumazet
On Thursday 03 August 2006 16:55, Evgeniy Polyakov wrote: > On Thu, Aug 03, 2006 at 04:40:34PM +0200, Eric Dumazet ([EMAIL PROTECTED]) wrote: > > > + mutex_lock(&u->ctl_mutex); > > > + while (num < max_nr && ((k = kqueue_dequeue_ready(u)) != NULL)) { > > > + if (copy_to_user(buf + num*size

Re: [take3 1/4] kevent: Core files.

2006-08-03 Thread Evgeniy Polyakov
On Thu, Aug 03, 2006 at 04:40:34PM +0200, Eric Dumazet ([EMAIL PROTECTED]) wrote: > > + mutex_lock(&u->ctl_mutex); > > + while (num < max_nr && ((k = kqueue_dequeue_ready(u)) != NULL)) { > > + if (copy_to_user(buf + num*sizeof(struct ukevent), > > +

Re: [take3 1/4] kevent: Core files.

2006-08-03 Thread Eric Dumazet
On Thursday 03 August 2006 11:46, Evgeniy Polyakov wrote: > Core files. > > This patch includes core kevent files: > - userspace controlling > - kernelspace interfaces > - initialization > - notification state machines > > +static int kevent_user_wait(struct file *file, struct kevent_user *u,

[take3 1/4] kevent: Core files.

2006-08-03 Thread Evgeniy Polyakov
Core files. This patch includes core kevent files: - userspace controlling - kernelspace interfaces - initialization - notification state machines It might also inlclude parts from other subsystem (like network related syscalls, so it is possible that it will not compile without other patche