feat(libkernel): implement sceKernelAioPollRequests #2118
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2118"
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 rozbh on 2026-10-09T09:16:41Z.
What
Implement
sceKernelAioPollRequests(id[], num, state[])in libkernel, replacing theNotImplemented_nid_no_patchstub. It copies the current state of every id intostatewithout waiting.Validation reuses
ValidateIds, shared withsceKernelAioWaitRequests: nullidorstatereturnsEFAULT, a negative count or an invalid id returnsEINVALbefore any state is written, more than 128 ids throws. The signature follows shadPS4. The function is added to the existing AIO entry in TechnicalDebt; console behaviour is unverified.GuestAio.cppcovers completed, aborted and cancelled states, the error codes, untouched output on invalid ids and onnum == 0, and the 128-id limit.Tested
ctest -R '^guest_aio$' --repeat until-fail:3passed 3/3.main), the new checks fail withsceKernelAioPollRequests not implemented; with it they pass.ctestwith-DANYPS5_ENABLE_SPIRV_TOOLS=ON: 502/504 passed.agc_shader_fusionandagc_driverdo not build locally onmaineither (spirv/unified1/spirv.hppnot found); unrelated to this change.python3 tools/check_conventions.py --base origin/mainpassed.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 MarcZX10 on 2026-10-09T09:50:34Z.
I compared the full diffs of #2118 and #2120: they implement the same
sceKernelAioPollRequestsexport and overlap inGuestAio.cpp/TechnicalDebt. #2118 has the more complete boundary coverage, including rejection of 129 IDs, so I recommend #2118 as canonical and #2120 as duplicate. Both still targetd9484c71; currentmainis745b775e2d883c68560b2d87f4ab96a01e221ccf. Please rebase #2118 and rerun its checks if retaining it. No full upstream Build is reported; the project requires a collaborator-triggered Build.Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T15:46:43Z.
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
fde15390, merged ontomaind70b8998in one build with 38 other PRs that had no Windows run.guest_aio. None of them reported skipping a case.No title was run.
🤖 Addressed by Claude Code
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T21:59:26Z.
Checked build + ctest on top of current main (530/530,
guest_aiopasses), and the new checks fail against the stub from main. Semantics match shadPS4 (EFAULT on nullstate, states copied without waiting) with the same validation assceKernelAioWaitRequests; the TechnicalDebt entry is updated. Windows run by @popcoder565 also passes. Merging.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T22:17:46Z.
Progress report (
8b393b6→4f16f7c)📈 System libraries: 84.72% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceKernelAioPollRequests