feat(libkernel): implement sceKernelGetModuleList2 and sceKernelGetModuleInfo2 #4544
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4544"
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 poonasor on 2026-10-12T15:15:31Z.
What
A commercial title does not load on current
main(c6efe068a); it converts withrelinker --windows --module-dir .and stops at start-up:QgsKEUfkqMAissceKernelGetModuleInfo2. With it exported the next stop is the same line forZzzC3ZGVAkc,sceKernelGetModuleList2(seen ond146ec1b6), so both are here.They are the title-module variants of
sceKernelGetModuleInfoandsceKernelGetModuleList. Source: shadPS4process.cpp, wheresceKernelGetModuleList2skips system libraries andsceKernelGetModuleInfo2returnsEPERMfor one, after the sameEFAULT,EINVALandESRCHchecks..prximage that is not a relinked title module (.guest.prx). The main program and the title's own modules are listed.Tested
Windows 11, MinGW-w64 GCC 15.2, AMD RX 6700 XT.
guest_module_infoextended:sceKernelGetModuleList2returns the main program first and a strict subset ofsceKernelGetModuleList; every listed handle gives the same name and segment count through both info calls; every handle only the full list has givesEPERMand leaves the buffer untouched;ENOMEM,EFAULT,EINVALandESRCHcases. It does not build onmain(the functions are missing) and passes with this change.ctest -R "module|dynamic_loader": 13 of 13 pass.sceAudioOut2UserGetSupportedAttributes not implemented, which is a separate topic.python tools/check_conventions.py --base origin/mainpasses.cteston this machine:guest_kernel_sysdoes not finish (it loops openingfile.txt; stopped by hand),guest_filesystemaborts and severalagc_driver_*tests crash or fail. None of them touch this code; I did not compare them against a run ofmainitself.Not tested: Linux (the
link_mapname check is untested there), macOS.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T15:15:57Z.
Progress report (
d592d54→08824f3)📈 System libraries: 86.34% (+0.01%, +2 implemented functions)
✅ 2 implemented
sceKernelGetModuleInfo2sceKernelGetModuleList2Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T15:37:28Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/tests/GuestModuleInfo.cppL18core/libs/tests/GuestModuleInfo.cppL18core/libs/prx/libkernel/Module/src/ModuleInfo.cppL207-208, L381-398core/libs/tests/GuestModuleInfo.cppL18docs/dev/TechnicalDebt.mdL207core/libs/prx/libkernel/Module/src/ModuleInfo.cppL207-208, L381-398