feat(libSceNpSessionSignaling): implement sceNpSessionSignalingGetConnectionStatus, GetConnectionStatistics, GetMemoryInfo #1582
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1582"
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 Deses on 2026-10-08T13:30:28Z.
What
Implements
sceNpSessionSignalingGetConnectionStatus,sceNpSessionSignalingGetConnectionStatisticsandsceNpSessionSignalingGetMemoryInfofor the library's offline model (contexts exist, no connection is ever created), with the signatures from the SDK reference.GetConnectionStatisticsandGetMemoryInfowere declared without parameters and take one output pointer each; the ids ofGetConnectionStatusareuint32_t(wereint32_t).GetConnectionStatus:NOT_INITIALIZED(0x80553301) beforeInitialize,INVALID_ARGUMENTfor a nullconnStatus,CTX_NOT_FOUND(0x80553308) for a context that was never created or was destroyed, otherwiseCONN_NOT_FOUND(0x8055330C). Nothing is written.GetConnectionStatistics: the four counters (0x10 bytes) are 0.GetMemoryInfo:totalMemSizeis thepoolSizepassed toInitialize; current and peak usage are 0, as nothing is allocated from the pool; the reserved bytes are zeroed (0x28 bytes).InitializereadsSceNpSessionSignalingInitParam(0x28 bytes) and keepspoolSize; a null param returnsINVALID_ARGUMENTand a second callALREADY_INITIALIZED(0x80553302).TerminatereturnsNOT_INITIALIZEDwhen the library is not initialized and drops the contexts.CreateContext2andDestroyContextkeep the set of live context ids; their results are unchanged.tools/progress.pyreports 15 of 15). New Unknown function info entries for the unknown-connection result and the pool usageGetMemoryInforeports.Sources (Sony SDK 12.000 NpSessionSignaling reference, mirrored in peterpuppy/bm under
features/ps5):GetConnectionStatus,SceNpSessionSignalingConnectionStatusand its errorsGetConnectionStatistics,GetMemoryInfoand their structuresSceNpSessionSignalingInitParam,InitializeandTerminateerrorsuint32_tlibSceNpSessionSignaling.c).tools/nid_names.py, also in aerolib): GetConnectionStatusn1fn2KFeLDA, GetConnectionStatistics+Q++Q49a9z8, GetMemoryInfolbXTXRG5nyM. The PS4sceNpSignaling*counterparts were not used.Unconfirmed: the result for a connection id that does not exist. The reference lists
CONN_NOT_FOUNDbut also describes statusINACTIVE(0) as "a connection with the specified ID does not exist"; the error is returned here, as no connection id is ever handed out. The console's own pool usage after initialization is unknown. The library's existingUNAVAILABLE(0x80552D06) is not in the reference's error table; it is left as is.Overlaps: #1128 (clang-format) reformats the old
GetConnectionStatusand #1539 removes the same two TechnicalDebt entries; neither implements these calls.Tested
Windows 11, GCC 15.2.0 (WinLibs), Release, in this branch's worktree rebased on current upstream/main (
fe9beae0): full build,libstarget andctest -R np_pass.guest_np_session_signalingchecks the three calls andTerminatebeforeInitialize(NOT_INITIALIZED), a null and a secondInitialize, null outputs, the pool size of the firstInitializewith zero usage, zero statistics,CTX_NOT_FOUNDfor an unknown and a destroyed context,CONN_NOT_FOUNDwith the outputs left untouched, andNOT_INITIALIZEDafterTerminate.check_conventions.pyandcheck_test_registration.pyclean. No title tested.CI: the upstream runs for this head are waiting for approval (#1631). The same Build workflow ran on the fork for head
0c6ce38b: https://github.com/Deses/AnyPS5/actions/runs/37804528715, Windows green; Linux stopped atcheck_test_registration.pybecause the basefe9beae0still carried theguest_formatting_testsexception that #1603 removed. The head merged into currentmain(4b005b22, merge191b8e99): https://github.com/Deses/AnyPS5/actions/runs/37805201526, Linux and Windows (full build,libs, ctest) and the relinker jobs (Linux, Windows, macOS) green.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)Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:53:05Z.
Closing: no title is shown reaching these calls on main, and library functions go in when one does. The same goes for #1537, #1564 and #1583. Please reopen any of them with the title ID and the log line where it stops.
Pull request closed