Repository navigation
feat(libSceNpSessionSignaling): implement sceNpSessionSignalingGetConnectionStatus, GetConnectionStatistics, GetMemoryInfo - #1582
Closed
Deses wants to merge 1 commit into
Conversation
Deses
force-pushed
the
feat/npsessionsignaling-status-calls
branch
from
October 8, 2026 14:10
6cb547b to
38981e3
Compare
…nectionStatus, GetConnectionStatistics, GetMemoryInfo
Deses
force-pushed
the
feat/npsessionsignaling-status-calls
branch
from
October 8, 2026 14:12
38981e3 to
0c6ce38
Compare
Deses
marked this pull request as ready for review
October 8, 2026 14:12
Collaborator
9 tasks done
ycbuzi
pushed a commit
to ycbuzi/AnyPS5
that referenced
this pull request
Oct 10, 2026
…ceNpSessionSignalingGetConnectionStatus, GetConnectionStatistics, GetMemoryInfo Harvested from upstream (closed unmerged); library completion 2842/3239 -> 2845/3239. (changelog conflict: kept both) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011krDVCnnMQPaEFEqCDnKmA
11 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 (fe9beae): 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)