Repository navigation
Conversation
AI-assisted with Codex.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Implement sceKernelAioPollRequests by validating the whole ID batch, taking a mutex-protected state snapshot, and then writing outputs. Invalid IDs leave outputs untouched; overlapping ID/output arrays cannot change later lookups. Existing AIO limits and error handling are retained.
Overlap: Thomas73737's #1498 also proposes this export. This is an independently authored, focused implementation with alias-preserving behavior and regressions; no commit from that PR is included. Public polling reference: shadPS4.
Tested
Windows x86-64, WinLibs MinGW-w64 GCC 15.2.0, Release. The publication branch is based on main ce64d8e. The AIO implementation and regression source are byte-for-byte identical to the tested integration commit db7b7e69. Diff and conventions checks pass on the isolated branch; the runtime results below were collected in the integration checkout.
Expanded guest_aio passes after failing on the previous stub. Tests cover completed/aborted states, duplicates, cancellation, overlapping arrays, zero and 128-request boundaries, null/negative/invalid inputs, and preservation on rejection. The 60-case kernel/AGC integration selection passed; full build, libs and conventions passed.
The existing 128-request bound and exception for an unknown oversize error are unchanged. No PS5 hardware, retail title or Linux runtime validation was performed.
Checklist