docs(debt): correct eight entries that no longer match the code #12104
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12104"
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 MarcZX10 on 2026-10-27T20:38:37Z.
What
Seven technical debt entries described behaviour that the linked code does not have. One commit per entry:
libkernel.md:sceKernelGetSocPowerConsumptionreturnsEFAULTfor a null buffer before it returnsEINVAL.libSceAudiodec.md:createAacreturns0x807F0305and0x807F0306for out-of-range extension and output modes; only in-range nonzero modes throw.libSceVoiceQoS.md:sceVoiceQoSReadPacketandsceVoiceQoSWritePacketcheck the buffer, the size pointer and the connection id before they return 0.libSceNet.md:sceNetShowNetstatExtakes a (flags) argument, unlike the other threesceNetShow*exports;sceNetInitParamtests the already-set flag before the null check, so a null parameter after a successful call returns0x80410110.libSceCustomMusicSysCallWrapper.md: the library exports one function, and the entry started with a stray bracket and used the plural.libSceHmd2.md:sceHmd2Openthrows for another user only for a title built before SDK 7.00; later titles get0x8a720009.The
AvPlayerVideoExentry is omitted because open PR #7412 edits the samedocs/dev/debt/libs.mdentry. This PR does not touch that file.Tested
Documentation only. Each entry was checked against the code it links on current
main.tools/check_conventions.py --base upstream/mainandgit diff --checkpass.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)Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T10:58:09Z.
Review: COMMENTED
Reviewed
7ce205d79a9b47ef692e130fc5b9c1a345c52653against author merge base46fe6f24374ad38712a82733f82d907fcb88316f— comment; final validation remains pending.The eight debt corrections agree with the checked export bodies, notably no invented CustomMusic prototype, unchanged VoiceQoS write size, and the power-consumption EINVAL/EFAULT paths without output writes. Console firmware measurements and title disassembly remain attributed evidence; I did not independently reproduce them.
Validation: checked the submitted Markdown diff, pinned implementation references and relative links;
git diff --checkpassed. This changes documentation only. Title disassembly and console observations were not independently reproduced; no runtime regression result is claimed.Publication-time checks: merge conflict with main. Please complete these checks before final approval; this status alone is not a demonstrated implementation defect.
Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T16:43:35Z.
Review: APPROVED
Re-reviewed
42e90bbcac589ee791c7cac8c40ec66f73e171ee— approve the documentation change. The corrected debt entries agree with the pinned implementation, including the SDK-7.00 Hmd2 user-id branch, 32-byte NetInitParam copy, untouched VoiceQoS write size, and the power-query EINVAL/EFAULT paths without output writes. The CustomMusic declaration is correctly distinguished from a verified prototype.Validation: checked all eight implementation references, the changed Markdown and relative links;
git diff --checkpasses. The current source explicitly uses Hmd2's0x07000000threshold and preserves the unknown pre-7.00-user path as unsupported. This is a documentation-only review; cited firmware/title observations were not independently reproduced. No remaining documentation defect was found in this scope.Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-10T17:48:11Z.
Review: COMMENTED
Read
17789e7a94againstmain.Correctness. Four of the six changes match the code.
sceHmd2Open(Export.cpp:222-233) throws for a non-initial user only whenCompiledSdkVersion() < Hmd2::UserIdSdkVersion(Hmd2.hpp:29, 0x07000000) and returnsParameterInvalid(0x8a720009) otherwise.sceNetShowNetstatEx(std::uint32_t flags)ignoresflags(Export.cpp:3406) while the other three take(void).sceVoiceQoSReadPacketandsceVoiceQoSWritePacket(Export.cpp:244-257) returnSCE_VOICE_ERROR_LIBVOICEQOS_ARGUMENT_INVALIDfor a null buffer, null size or unknown connection.sceKernelGetSocPowerConsumption(ThermalSensors.cpp:289-292) returns EFAULT for null and EINVAL otherwise.Defect. Three of the added entries duplicate entries already on
main, so each file now has the entry twice.libSceAudiodec.md:3repeats "M4AAC extended parameters" (existing at line 6),libSceCustomMusicSysCallWrapper.md:3repeatssceCustomMusicSelect(existing at line 116), andlibSceNet.md:42repeatssceNetInitParam(existing at line 43, which also has the checked-read sentence). The new Audiodec entry is also wrong: it says surround interleave orders 1 and 2 throw, butlibSceAudiodec/Export.cpp:260throws only whendecoded.channels > 2, and the existing entry says mono and stereo are unchanged. Merge the useful parts (the ranges and error codes atExport.cpp:163-166; "on the first call" forsceNetInitParam, consistent withExport.cpp:3225-3238) into the existing entries and drop the new bullets, which also sit above the first###heading.Not run here; this is from reading the code.
AI-assisted: yes.