fix(libkernel): report stream writes as unsupported from libkernel #18654
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18654"
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 DealPotato on 2026-11-12T00:01:57Z.
What
WWE 2K26 (PPSA34299) imports the seven
sceKernelStreamWrite*functions from libkernel. Onmainit stops about 40 s after boot withsceKernelStreamWriteCreate not implemented.They move from libkernel_sys to libkernel, where the title imports them, and report that stream writes are unsupported:
sceKernelStreamWriteCreatefails withENOSYSand the others withEBADF, as no stream can exist. The title skips its write cache when they fail. The gap (arguments not decoded, console results not measured) is recorded in technical debt.Tested
Windows 11 Pro (build 26300). WWE 2K26 (PPSA34299 01.018.000) on
main(3a0a54bbd8) stops about 40 s after boot atsceKernelStreamWriteCreate not implemented. With this change, in a build that also held four other fixes for the title on other code, it runs past that point and stops about 50 s later at an unrelated check (a runtime image descriptor of a compute shader). No focused test: the change only moves the exports and sets their return values.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T00:33:34Z.
Review: APPROVED
Reviewed — looks good
The seven stream-write exports now resolve from
libkerneland return explicit unsupported/no-stream errors; I found no blocking issue in the reviewed diff.What I ran
Head
c78166e4dd82fc232fa52b460effcc207f545753; base80b5a5016f352cf0298bd32f16653c96007dab4a. Environment: Debian 12, Python 3.11.2, GCC 12.2.0.The PR description reports that WWE 2K26 passed the previous
StreamWriteCreatefailure point in a build containing this PR and four other fixes; that run does not isolate this change.Results
main.Findings
Blocking
None.
Non-blocking
The return values are documented as not measured on a PS5. The PR records this limitation in the debt entry; the combined game run is useful integration evidence but does not confirm the console’s exact errors.
Sources
Not verified
To get this to a good state
No follow-up is required for the reviewed head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T10:40:55Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this; the points below are optional.
What I ran
Head
e795140d9fd2e98691d01bfa76d84f1f4ab45f86, basemain. No merged-preview check and no build. Repository reads went through the reader pinned to the head.Results
Unimplemented.cppENOSYSandEBADFconstantsKernelErrors.hppFindings
Blocking
None.
Non-blocking
core/libs/prx/libkernel/Unimplemented.cpp:51: the PR checklist ticks "Unimplemented paths throw (NotImplemented_nid_no_patch)", but these seven functions now return error codes and no longer throw. The behaviour is deliberate and documented, so the checklist line should say it is an exception, or the box should be left unticked.docs/dev/debt/libkernel.md:160: the new entry sits under### Functional. The checklist sends silent stubs to### Silent stubs(line 3 of the same file). Moving the entry there would match the stated convention.Not verified
ENOSYSandEBADFon the console are not measured; the PR says so and the debt entry records it.docs/dev/CONVENTIONS.mdwas not read, so the checklist's convention claims are checked only against the diff.Export.Discovery.cppandlibkernel_sys/include/Api.hppwere read only through their diff hunks and head searches, not in full.Unimplemented.cpp,libkernel/include/Api.hppanddocs/dev/debt/libkernel.mdwere read through their diff hunks too.To get this to a good state
Nothing is required.