Skip to content

feat(libkernel): poll batches of asynchronous I/O requests - #1877

Closed
Albaloola wants to merge 1 commit into
boykopovar:mainfrom
Albaloola:contribution/kernel-aio-poll
Closed

Albaloola wants to merge 1 commit into
boykopovar:mainfrom
Albaloola:contribution/kernel-aio-poll

Conversation

@Albaloola

Copy link
Copy Markdown

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

  • Based on current main; topical diff, source equality and conventions checked
  • No overlapping open PR (known overlap disclosed above; do not mark this item checked)
  • One topic per PR; follow-up work is separate
  • No investigation notes or images added to repository source
  • Unsupported paths remain explicit failures; limitations are recorded in TechnicalDebt
  • New third-party dependencies, if any, are pinned submodules built from source
  • Generic behavior, not specific to one title
  • Depends on: none
  • AI-assisted: yes, with OpenAI Codex; the PR author remains responsible for the submitted changes

@Albaloola Albaloola closed this Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant