Files
AnyPS5/docs/dev/debt/changes/feat-kqueue-timer-readd.md
ge9x0andClaude Opus 5.5 3384092486 feat(libkernel): take a new EVFILT_TIMER period on enable, disable and re-add changes
A change to an existing timer with a positive data and a known unit
now replaces the period and udata and keeps the armed expiry, with
EV_ENABLE or EV_DISABLE and with or without EV_ADD, as FreeBSD 11's
kqueue_register copies data and fflags onto the note for every change
that does not delete it. Before, EV_ENABLE or EV_DISABLE with a period
and EV_ADD combined with either flag threw. Changes with data 0 or less
keep throwing, since the console's zero-period behaviour is not modelled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:44:49 +01:00

1.0 KiB

libkernel

change [EVFILT_TIMER modify with data 0]

  • EVFILT_TIMER modify with data 0 (libkernel) - a change without EV_ADD and with data and fflags unset keeps the period, where PS5 firmware 13.60 took FreeBSD's zero default: the timer then fired about every millisecond, also after EV_DISABLE or EV_ENABLE with data 0. Otherwise data 0 or less, an unknown unit, flags other than EV_ADD, EV_ONESHOT, EV_ENABLE and EV_DISABLE, a one-shot timer or a period that overflows the armed expiry throw. A positive data with a known unit replaces the period and udata and keeps the armed expiry, as FreeBSD 11's kqueue_register copies data and fflags for every change that does not delete the note; not measured on a console. An enable reports the expiries missed while disabled and keeps the phase, as filt_timerexpire does (TimerDisableEnableRearm, TimerToggleTakesNewPeriod).