feat(libkernel): report the error carried by an equeue event #2003
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2003"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by evDev69 on 2026-10-09T04:52:20Z.
What
Implements
sceKernelGetEventError. When the event hasEV_ERROR(0x4000) set, it returnsdata, the errno the kernel stored there; otherwise 0. A null event throws, like the othersceKernelGetEvent*accessors.Sources: FreeBSD kevent semantics for
EV_ERROR; KytyPS5 (KernelGetEventError) does the same; SharpProspero documents it as the event's error number or zero.Tested
See shared notes.
guest_equeue_eventsgains checks for no flag,EV_ERRORwith data 22, every other flag bit set, and null. The test aborts without the change and passes with it.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by WifeInLantern on 2026-10-09T07:50:12Z.
Heads-up: #950 (opened 2026-10-06) already implements
sceKernelGetEventErrorwith the same behaviour (dataunderEV_ERROR, else 0), has CI passing on Linux and Windows, and has had a review. I tested it on Windows and commented there. The maintainers will decide which to keep; this is only so you know about the overlap.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:55:53Z.
Closing: nothing shows a title calling
sceKernelGetEventErroron main. Reopen with the title ID and the log line if one does.Pull request closed