Files
AnyPS5/docs/dev/debt/changes/docs-libkernel-debt-evfilt-user-dispatch.md
MoandClaude Fable 5.2 3e69359b1e docs(libkernel): record that EV_DISPATCH clears a user note's activation and saved fflags
The kqueue debt entry says the user filter follows FreeBSD's
kern_event.c. For a kevent EVFILT_USER note registered with
EV_DISPATCH it does not: delivery clears the note's activation and its
saved fflags. FreeBSD 11.4 clears the activation only under EV_CLEAR
and never the saved fflags, so here a re-enabled note without EV_CLEAR
stays silent until a new NOTE_TRIGGER, and the saved fflags restart
from 0.

No title is known to register a user note with EV_DISPATCH and nothing
was measured on a console, so the difference is recorded as a debt
entry and the behaviour is left as it is.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 03:00:41 -08:00

1.0 KiB

libkernel

add Functional

  • EV_DISPATCH on an EVFILT_USER note (libkernel) - delivering a kevent user note registered with EV_DISPATCH clears its activation and its saved fflags; FreeBSD 11.4's filt_usertouch clears the activation only under EV_CLEAR and never the saved fflags, and kqueue_register asks the filter again on EV_ENABLE. A re-enabled note without EV_CLEAR stays silent here until a new NOTE_TRIGGER, and the saved fflags restart from 0: the next report carries 0 after a NOTE_FFNOP or NOTE_FFAND trigger and only the new bits after NOTE_FFOR. Not measured on a console; no title is known to register a user note with EV_DISPATCH, and the sceKernel*UserEvent* calls cannot set it