feat(libkernel_sys): declare eight Discovery stubs with the OpenOrbis signatures #10695
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10695"
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-24T18:20:40Z.
What
Replaces the
(void)parameter lists of eightlibkernel_sysstubs inExport.Discovery.cppwith typed ones:sceKernelGetCpuUsage(void*, int32_t*),sceKernelGetThreadName(uint32_t, char*),sceKernelLwfsAllocateBlock(int32_t, int64_t),sceKernelLwfsLseek(int32_t, int64_t, int32_t)andsceKernelLwfsWrite(int32_t, const void*, size_t)(the last two returnint64_t),sceKernelLwfsSetAttribute(int32_t, int32_t),sceKernelSetCompressionAttribute(int32_t, int32_t)andsceKernelSetFsstParam(int32_t, void*). Every body still throws throughNotImplemented_nid_no_patch.Single source, stated plainly: the types are from the PS4 OpenOrbis
include/orbis/libkernel.h; shadPS4 does not define these functions, so there is no second reference and nothing is measured on a PS5.off_tandssize_tare taken as 64-bit. TheLwfs*andSet*parameters are unnamed in the header, so the names here are guesses.Proc_StatsofsceKernelGetCpuUsageisvoid*because its layout is unknown. The debt entry indocs/dev/debt/libkernel_sys.mdsays all of this.sceKernelGetIdPsandsceKernelIccSetBuzzerare left alone because the header declares themvoid, which would change the return type;sceKernelGetOpenPsIdForSystemand thescePthreadMutex*prioceilingpair are covered by open PRs.Two commits: declarations, debt entry. Rebased on current
main; none of the open PRs above #10640 changes these functions.Tested
Linux, GCC,
cmake --build --target libkernel_sysbuilds.tools/check_conventions.py --base upstream/main --head HEADandgit diff --checkpass. No title or hardware run: throwing stubs, same behaviour as before.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)