feat(libkernel): implement sceKernelAioPollRequests #1205

Closed
CnRJay wants to merge 1 commit from upstream-pr/1205 into main
CnRJay commented 2026-10-07 17:34:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-07T17:34:48Z.


What

sceKernelAioPollRequests(id, num, state) copies the current state of each listed AIO request into state without waiting. Argument checks reuse the other batch calls' validation: a null id or state returns EFAULT; a negative count or an invalid id returns EINVAL, and this check runs before any state is written. More than 128 ids throws, as in the other batch calls. Added it to the existing AIO entry in TechnicalDebt.

Tested

Ubuntu 24.04, GCC 13.3, Release build. guest_aio passes with new checks: poll after a completed batch, poll after delete, zero count, null pointers, negative count, invalid id leaves state untouched, and a 129-id batch throws. The full ctest run also passes, except agc_driver_flip, which failed only under -j8 and passes when run alone.
Also checked on Windows 11 (MinGW GCC Release build): guest_aio passes.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4776208800 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1205). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-10-07T17:34:48Z. --- ### What `sceKernelAioPollRequests(id, num, state)` copies the current state of each listed AIO request into `state` without waiting. Argument checks reuse the other batch calls' validation: a null `id` or `state` returns `EFAULT`; a negative count or an invalid id returns `EINVAL`, and this check runs before any state is written. More than 128 ids throws, as in the other batch calls. Added it to the existing AIO entry in TechnicalDebt. ### Tested Ubuntu 24.04, GCC 13.3, Release build. `guest_aio` passes with new checks: poll after a completed batch, poll after delete, zero count, null pointers, negative count, invalid id leaves `state` untouched, and a 129-id batch throws. The full `ctest` run also passes, except `agc_driver_flip`, which failed only under `-j8` and passes when run alone. Also checked on Windows 11 (MinGW GCC Release build): `guest_aio` passes. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-07 17:38:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-07T17:38:20Z.


Progress report (cea1ef1 → c5c74be)

📈 System libraries: 86.05% (+0.03%, +1 implemented functions)

✅ 1 implemented
Library Name
libkernel sceKernelAioPollRequests
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6043379490 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1205#issuecomment-6043379490). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-07T17:38:20Z. --- <!-- progress-report --> ### Progress report (cea1ef1 → c5c74be) 📈 **System libraries**: 86.05% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libkernel | `sceKernelAioPollRequests` | </details>
oneandonlydean commented 2026-10-08 02:49:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T02:49:37Z.


Does PPSA14632 call sceKernelAioPollRequests on main? If it does, please add the log line where it stops and this can go in; otherwise it waits until a title does.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6051160097 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1205#issuecomment-6051160097). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-08T02:49:37Z. --- Does PPSA14632 call `sceKernelAioPollRequests` on main? If it does, please add the log line where it stops and this can go in; otherwise it waits until a title does.
github-actions[bot] commented 2026-10-08 08:58:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T08:58:19Z.


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.

Pull request Conflicting files (lines on main) Same exports Same new files
#1480 docs/dev/TechnicalDebt.md L118-119
#1498 core/libs/prx/libkernel/Aio/src/Aio.cpp L309-310 sceKernelAioPollRequests
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6056396535 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1205#issuecomment-6056396535). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T08:58:19Z. --- <!-- pr-overlap --> 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**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #1480 | `docs/dev/TechnicalDebt.md` [L118-119](https://github.com/boykopovar/AnyPS5/blob/1081602d792ec4c7225419d4b5505d3f9943db93/docs/dev/TechnicalDebt.md#L118-L119) | | | | #1498 | `core/libs/prx/libkernel/Aio/src/Aio.cpp` [L309-310](https://github.com/boykopovar/AnyPS5/blob/1081602d792ec4c7225419d4b5505d3f9943db93/core/libs/prx/libkernel/Aio/src/Aio.cpp#L309-L310) | `sceKernelAioPollRequests` | |
CnRJay commented 2026-10-08 19:29:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-08T19:29:56Z.


Closing for now: no title log on main shows a stop at these exports yet. The branch stays on the fork; I'll reopen with the title ID and log line if one turns up.

🤖 Closed by Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6067488784 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1205#issuecomment-6067488784). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-10-08T19:29:56Z. --- Closing for now: no title log on `main` shows a stop at these exports yet. The branch stays on the fork; I'll reopen with the title ID and log line if one turns up. _🤖 Closed by [Claude Code](https://claude.com/claude-code)_

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!1205
No description provided.