feat(libkernel): implement sceKernelAioPollRequests #2120
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2120"
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 StarMrGamer on 2026-10-09T09:23:47Z.
What
sceKernelAioPollRequestswas the one export in Aio.cpp that still calledNotImplemented_nid_no_patch, while every sibling in the same file is implemented. It reports the state of every listed request, the batch form ofsceKernelAioPollRequest, which already exists.Validation follows the other batch exports in the file (
sceKernelAioWaitRequests,sceKernelAioDeleteRequests,sceKernelAioCancelRequests): null pointers returnEFAULT, a negative count returnsEINVAL, and an out-of-range id returnsEINVAL, all before any state is written.The behaviour matches shadPS4's
sceKernelAioPollRequests(state[i] = id_state[id[i]]for each entry), the same reference the sibling exports in this file already follow and that the TechnicalDebt entry records.Tested
Linux (CachyOS, GCC 16.2.1, Release, full build):
ninja -C build libkernel guest_aio_testsbuilds.ctest --test-dir build -R ^guest_aio$ --output-on-failurepasses.GuestAio.cppnow covers the batch poll of completed and aborted requests and its null-pointer, negative-count and invalid-id errors, plus the zero-count no-op.python3 tools/check_conventions.py --base origin/mainpasses.Windows and PS5 hardware not tested.
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-09T09:36:59Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/TechnicalDebt.mdL125-126core/libs/tests/GuestAio.cppL147docs/dev/TechnicalDebt.mdL126sceKernelAioPollRequestsImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T09:50:35Z.
I compared the full diff with #2118. They implement the same export and behavior; #2118 also tests the 129-ID boundary. #2120 adds no distinct behavior, so I recommend closing it as duplicate and retaining #2118 as canonical. Both heads still target
d9484c71; currentmainis745b775e2d883c68560b2d87f4ab96a01e221ccf. If this PR is retained instead, please carry over the over-limit regression and rebase on currentmain.Imported from boykopovar/AnyPS5. Originally posted by StarMrGamer on 2026-10-09T11:17:27Z.
Thanks — I checked this independently and you're right.
sceKernelAioPollRequestsbody in Aio.cpp (ValidateIds, then the locked loop overg_states).Closing #2120 as a duplicate; #2118 is the canonical one. Note that #2118's head still targets
d9484c71whilemainis nowd70b8998, so it needs a rebase before the manual full-build run.Pull request closed