mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-05 00:50:52 +00:00
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>
1.0 KiB
1.0 KiB
libkernel
change [EVFILT_TIMER modify with data 0]
- EVFILT_TIMER modify with data 0 (libkernel) - a change without
EV_ADDand withdataandfflagsunset keeps the period, where PS5 firmware 13.60 took FreeBSD's zero default: the timer then fired about every millisecond, also afterEV_DISABLEorEV_ENABLEwithdata0. Otherwisedata0 or less, an unknown unit, flags other thanEV_ADD,EV_ONESHOT,EV_ENABLEandEV_DISABLE, a one-shot timer or a period that overflows the armed expiry throw. A positivedatawith a known unit replaces the period andudataand keeps the armed expiry, as FreeBSD 11'skqueue_registercopiesdataandfflagsfor 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, asfilt_timerexpiredoes (TimerDisableEnableRearm,TimerToggleTakesNewPeriod).