Re: EVFILT_USER and kevent(2)

2022-04-30 Thread Joerg Sonnenberger
Am Sat, Apr 30, 2022 at 10:05:05PM +0100 schrieb Stuart Henderson: > On 2022/04/30 13:51, Visa Hankala wrote: > > I am in two minds about EVFILT_USER. On the one hand, having it on > > OpenBSD might help with ports. > > No opinion on the addition, but I don't think we ran into this in ports > so

Re: EVFILT_USER and kevent(2)

2022-04-30 Thread Stuart Henderson
On 2022/04/30 13:51, Visa Hankala wrote: > I am in two minds about EVFILT_USER. On the one hand, having it on > OpenBSD might help with ports. No opinion on the addition, but I don't think we ran into this in ports so far. There is software in ports which can use it but it can all work without

Re: EVFILT_USER and kevent(2)

2022-04-30 Thread Ted Unangst
On 2022-04-30, Visa Hankala wrote: > I am in two minds about EVFILT_USER. On the one hand, having it on > OpenBSD might help with ports. On the other hand, it makes the kernel > perform a task that userspace can already handle using existing > interfaces. I agree you could do this with just a

EVFILT_USER and kevent(2)

2022-04-30 Thread Visa Hankala
It has been asked in the past if OpenBSD's kevent(2) should implement user event filters, also known as EVFILT_USER. This filter type originates from FreeBSD but is now available also on DragonFly BSD, NetBSD, and macOS. Below is an implementation of EVFILT_USER. The logic should be fairly