Re: kqpoll_init/exit()

2020-12-08 Thread Martin Pieuchot
On 08/12/20(Tue) 11:45, Mark Kettenis wrote: > > Date: Mon, 7 Dec 2020 14:18:41 -0300 > > From: Martin Pieuchot > [,..] > > Index: kern/kern_event.c > > === > > RCS file: /cvs/src/sys/kern/kern_event.c,v > > retrieving revision 1.146

Re: kqpoll_init/exit()

2020-12-08 Thread Mark Kettenis
> Date: Mon, 7 Dec 2020 14:18:41 -0300 > From: Martin Pieuchot > > Diff below adds a per-thread kqueue that will be initialized during the > first select(2) or poll(2) syscall and freed upon exit. > > Along with this queue a per-thread serial number is used to check the > integrity of events enq

kqpoll_init/exit()

2020-12-07 Thread Martin Pieuchot
Diff below adds a per-thread kqueue that will be initialized during the first select(2) or poll(2) syscall and freed upon exit. Along with this queue a per-thread serial number is used to check the integrity of events enqueued during a given syscall. This could also later be used to perform lazy