feat(libkernel): implement sceKernelGetEventError #3638
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3638"
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 ZekriDev1 on 2026-10-11T14:32:21Z.
What
Implements
sceKernelGetEventError(libkernel/Equeue): null event throws via the sharedrequireEventhelper (same as all sibling accessors); otherwise returns(int)datawhenEV_ERRORis set inflags, else 0. Uses the existing in-repoEV_ERROR(Equeue.hpp). Needed so titles readingkqueue/keventresults (cf.TechnicalDebt.mdkqueue/kevent titles) get the standard BSD error channel instead of a throw-on-any-call stub. Evidence: FreeBSDsys/sys/event.h(EV_ERROR 0x4000, data contains errno;struct keventlayout matchesKernelEvent). Generic behavior, one function, no new dependencies. Uncertainty: console errno values andEV_ERRORproduction sites unverified; emulator-generated events currently never carry it.Tested
python3 tools/check_conventions.py --base a11c8f7 --head HEAD→ pass.python3 -m unittest discover -s tools/tests→ 95 tests OK.python3 tools/progress.py→ 2904/3383 (85.84%), +1 implemented, not inert.cmakebuild /ctest/GuestEqueueEventsrun: not run — no toolchain (cmake/ninja/compiler absent) and submodules uninitialized. Test was written to fail if reverted but not executed here.Checklist
main; no other open PR implements the same functions (upstream/main=a11c8f7, branch base verified)//added; verified via conventions check)NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt (no new silent stub; this path is implemented).mdfiles or images added to the repositorykeventsemantics)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T14:33:11Z.
Progress report (
a11c8f7→f27c8a9)📈 System libraries: 85.84% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceKernelGetEventErrorImported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T15:19:52Z.
Independent pre-review on Linux (full CI runs only happen on manual trigger, so recording one): CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON.tools/check_conventions.py --base origin/mainpasses.Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T17:19:09Z.
Cross-reference: #3396 implements the same export (
sceKernelGetEventError).CONTRIBUTING.md asks authors to "check that no open pull request already implements the same functions" before starting — both PRs are open, so flagging for the maintainers.
The limitation this creates: only one of the two can be merged; the other gets closed as duplicate, and both currently cost review time in a 340+ queue.
Evidence to help the choice (independent pre-review, Linux — CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON):main, CLEAN, full local suite 832/832 green;main, currently DIRTY (needs a rebase before it can merge).Imported from boykopovar/AnyPS5. Originally posted by ZekriDev1 on 2026-10-11T22:32:55Z.
Superseded by #4046, whose branch contains this exact commit plus the wider coverage batch. Closing to stay within the open-PR limit; please review the equeue change there.
Pull request closed