feat(libkernel): implement sceKernelGetEventError #4651
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4651"
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 ErenYeager1836 on 2026-10-12T17:55:13Z.
What
Implement
sceKernelGetEventError(const KernelEvent* ev)inlibkernel:datawhenEV_ERROR(0x4000) is set inflags, and0otherwise, matching KytyPS5 and FreeBSD 11keventbehavior where the errno of a failed change is returned indata.requireEvent, throwing like the other event accessors.GuestEqueueEvents.cpptest suite to cover validEV_ERRORflag extraction, non-error flags returning 0, and null-argument checks.TechnicalDebt.md.Carries @screamm's branch rebased on current
main.Tested
guest_equeue_eventspassed (ctest -R guest_equeue_events-> 100% passed in 0.64 s).python tools/check_conventions.py --base upstream/mainpassed with 0 errors.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 repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T18:03:04Z.
Progress report (
7940cac→a0a238c)📈 System libraries: 87.57% (+0.02%, +1 implemented functions)
✅ 1 implemented
sceKernelGetEventErrorImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-12T21:11:35Z.
Checked on the PR rebased onto current
main:guest_equeue_eventsplus the libkernel/libs ctest scope pass (150/150), and the new test fails without the change. The behaviour matches KytyPS5KernelGetEventError; the fpPS4 divergence and the unverified console behaviour are recorded in the debt entry.Rebased only to resolve the adjacent conflict in
docs/dev/debt/libkernel.md. Merging once CI is green.