feat(prx): declare the missing libSceNpManager PS5 3.20 system exports #8500
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8500"
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 juanpimg on 2026-10-20T13:58:05Z.
What
Declares 239 PS5 3.20 system exports of
libSceNpManagerthat AnyPS5 does not provide.AnyPS5 resolves a title's imports by NID, so a title that imports a system function that no AnyPS5 library provides fails to load with an unresolved import. Declaring them as throwing stubs lets those titles load and reach their next blocker, which is what the bring-up process needs.
Every declaration calls
NotImplemented_nid_no_patchand returns 0; none of them implements the function. The nine declarations whose prototype the evidence supports use it and cite the source with a pinned commit; the other 230 are declared without parameters, which resolves the import without making an ABI claim. The technical-debt file records the limitation.The list is the intersection of the export table of the console's library (function symbols only), the pinned aerolib names and the functions not yet defined anywhere in the repo. Every name recomputes to its NID with
tools/nid_names.py.tools/pr_overlap.pyreports no shared export with any open pull request. Sixteen exports of this library were removed from this change because #6977 and #8110 already declare them; the tool finds them by comparing NIDs, and a text search for the library name does not, because neither pull request's title mentions the library. The tool still reports #8110 and #8490 as editing the same technical-debt file, which a rebase resolves.tools/progress.pyreports system libraries changing from 4309/6681 (64.5%) to 4309/6920 (62.27%). These are pending declarations, so the implemented count is unchanged.Tested
CachyOS Linux, kernel 7.2.9-2-cachyos, GCC 16.2.1, CMake 3.31.6, Ninja 1.12.1, Release build.
cmake --build build --parallel, no error.ctest --test-dir build --output-on-failure -j4: 1738 of 1739 pass.guest_sysmodulefails identically onorigin/main(it aborts with "unknown id: 65535" insceSysmoduleIsLoaded), so it is a pre-existing failure and not a regression. Thevideo_out_*tests that need a display are skipped.python3 tools/check_conventions.py --base origin/main: all conventions checks passed.python3 tools/check_test_registration.py build: 1124 test executables, none unregistered.python3 tools/pr_overlap.py --branch feat/prx-declare-ps5-3.20-exports-tier4: no shared export with any open pull request.tools/nid_names.pyagainst the inventory, every symbol was checked againstorigin/mainso that no NID is exported twice, and every symbol was checked against the host C library and against its own library's sources so that no declaration interposes on a function the library itself calls.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 github-actions[bot] on 2026-10-20T13:58:53Z.
Progress report (
42427a6→7512d28)📉 System libraries: 62.27% (-2.23%, +239 declared functions)
🆕 239 declared as stubs
_sceNpIpcCreateMemoryFromKernel_sceNpIpcCreateMemoryFromPool_sceNpIpcDestroyMemory_sceNpIpcFreeImpl_sceNpIpcGetNpMemAllocator_sceNpIpcMallocImpl_sceNpIpcReallocImpl_sceNpManagerCreateMemoryFromKernel_sceNpManagerCreateMemoryFromPool_sceNpManagerDestroyMemory_sceNpManagerFreeImpl_sceNpManagerGetNpMemAllocator_sceNpManagerMallocImpl_sceNpManagerReallocImplsceNpAsmAbortsceNpAsmClientAbortRequestsceNpAsmClientClearNpTitleTokensceNpAsmClientClearNpTitleTokenAsceNpAsmClientCreateRequest2sceNpAsmClientCreateResourceContextsceNpAsmClientCreateResourceContext2sceNpAsmClientDeleteRequestsceNpAsmClientDeleteResourceContextsceNpAsmClientDeleteResourceContext2sceNpAsmClientGetAppIdsceNpAsmClientGetCacheControlMaxAgesceNpAsmClientGetGameNpTitleInfosceNpAsmClientGetGameNpTitleTokensceNpAsmClientGetGameTitleBanInfosceNpAsmClientGetNpComInfo2sceNpAsmClientGetNpComInfo2AsceNpAsmClientGetNpComInfo3sceNpAsmClientGetNpComInfo4sceNpAsmClientGetNpTitleIdsceNpAsmClientGetNpTitleTokensceNpAsmClientGetNpTitleToken2sceNpAsmClientGetNpTitleTokenAsceNpAsmClientGetRelatedGameNpTitleIdssceNpAsmClientGetRelatedGameNpTitleIdsAsceNpAsmClientGetRelatedGameNpTitleIdsResultsceNpAsmClientGetServiceBaseUrlsceNpAsmClientGetServiceBaseUrlAsceNpAsmClientGetServiceBaseUrlWithNpTitleIdsceNpAsmClientGetServiceBaseUrlWithNpTitleIdAsceNpAsmClientGetServiceIdInfosceNpAsmClientGetServiceIdInfoAsceNpAsmClientInitializesceNpAsmClientSetNpTitleIdsceNpAsmClientTerminatesceNpAsmCreateConnectionsceNpAsmCreateRequestsceNpAsmDeleteConnectionsceNpAsmDeleteRequestsceNpAsmGenerateNpTitleTokensceNpAsmGenerateNpTitleToken2sceNpAsmGetNpCommInfosceNpAsmGetNpCommInfo2sceNpAsmGetRelatedGameNpTitleIdssceNpAsmGetServiceBaseUrlsceNpAsmGetServiceIdInfosceNpAsmInitializesceNpAsmTerminatesceNpCheckCallbackForLibsceNpCheckNpAvailabilityAsceNpGetAccountDateOfBirthAsceNpGetAccountLanguageAsceNpGetGamePresenceStatussceNpGetGamePresenceStatusAsceNpGetParentalControlInfoAsceNpIdMapperAbortRequestsceNpIdMapperAccountIdToNpIdsceNpIdMapperAccountIdToOnlineIdsceNpIdMapperCreateRequestsceNpIdMapperDeleteRequestsceNpIdMapperNpIdToAccountIdsceNpIdMapperOnlineIdToAccountIdsceNpInGameMessageAbortHandlesceNpInGameMessageCheckCallbacksceNpInGameMessageGetMemoryPoolStatisticssceNpInGameMessagePrepareAsceNpInGameMessageSendDataAsceNpIntGetAppTypesceNpIntGetGamePresenceStatussceNpIntGetNpTitleIdsceNpIntGetNpTitleIdSecretsceNpIntRegisterCheckCallbacksceNpIntRegisterGamePresenceCallbacksceNpIsPlusMembersceNpManagerIntAbortRequestsceNpManagerIntAddActiveSigninStateCallbacksceNpManagerIntAddOnlineIdChangeCallbacksceNpManagerIntAddPlusMemberTypeCallbacksceNpManagerIntAddSigninStateCallbacksceNpManagerIntAuthGetAuthorizationCodesceNpManagerIntAuthGetIdTokensceNpManagerIntCheckNpAvailabilitysceNpManagerIntCheckNpAvailabilityByPidsceNpManagerIntCheckNpStatesceNpManagerIntCheckNpStateAsceNpManagerIntClearGameAccessTokenImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T14:06:00Z.
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)docs/dev/debt/libSceNpManager.mdL9-10, L12-13docs/dev/debt/libSceNpManager.mdL15docs/dev/debt/libSceNpManager.mdL10sceNpAsmAbortsceNpAsmClientAbortRequestsceNpAsmClientClearNpTitleTokensceNpAsmClientClearNpTitleTokenAsceNpAsmClientCreateRequest2sceNpAsmClientCreateResourceContextsceNpAsmClientCreateResourceContext2sceNpAsmClientDeleteRequestsceNpAsmClientDeleteResourceContextsceNpAsmClientDeleteResourceContext2sceNpAsmClientGetAppIdsceNpAsmClientGetCacheControlMaxAgesceNpAsmClientGetGameNpTitleInfosceNpAsmClientGetGameNpTitleTokensceNpAsmClientGetGameTitleBanInfosceNpAsmClientGetNpComInfo2sceNpAsmClientGetNpComInfo2AsceNpAsmClientGetNpComInfo3sceNpAsmClientGetNpComInfo4sceNpAsmClientGetNpTitleIdsceNpAsmClientGetNpTitleTokensceNpAsmClientGetNpTitleToken2sceNpAsmClientGetNpTitleTokenAsceNpAsmClientGetRelatedGameNpTitleIdssceNpAsmClientGetRelatedGameNpTitleIdsAsceNpAsmClientGetRelatedGameNpTitleIdsResultsceNpAsmClientGetServiceBaseUrlsceNpAsmClientGetServiceBaseUrlAsceNpAsmClientGetServiceBaseUrlWithNpTitleIdsceNpAsmClientGetServiceBaseUrlWithNpTitleIdAsceNpAsmClientGetServiceIdInfosceNpAsmClientGetServiceIdInfoAsceNpAsmClientInitializesceNpAsmClientSetNpTitleIdsceNpAsmClientTerminatesceNpAsmCreateConnectionsceNpAsmCreateRequestsceNpAsmDeleteConnectionsceNpAsmDeleteRequestsceNpAsmGenerateNpTitleTokensceNpAsmGenerateNpTitleToken2sceNpAsmGetNpCommInfosceNpAsmGetNpCommInfo2sceNpAsmGetRelatedGameNpTitleIdssceNpAsmGetServiceBaseUrlsceNpAsmGetServiceIdInfosceNpAsmInitializesceNpAsmTerminatesceNpCheckCallbackForLibsceNpCheckNpAvailabilityAsceNpGetAccountDateOfBirthAsceNpGetAccountLanguageAsceNpGetGamePresenceStatussceNpGetGamePresenceStatusAsceNpGetParentalControlInfoAsceNpIdMapperAbortRequestsceNpIdMapperAccountIdToNpIdsceNpIdMapperAccountIdToOnlineIdsceNpIdMapperCreateRequestsceNpIdMapperDeleteRequestsceNpIdMapperNpIdToAccountIdsceNpIdMapperOnlineIdToAccountIdsceNpInGameMessageAbortHandlesceNpInGameMessageCheckCallbacksceNpInGameMessageGetMemoryPoolStatisticssceNpInGameMessagePrepareAsceNpInGameMessageSendDataAsceNpIntGetAppTypesceNpIntGetGamePresenceStatussceNpIntGetNpTitleIdsceNpIntGetNpTitleIdSecretsceNpIntRegisterCheckCallbacksceNpIntRegisterGamePresenceCallbacksceNpIsPlusMembersceNpManagerIntAbortRequestsceNpManagerIntAddActiveSigninStateCallbacksceNpManagerIntAddOnlineIdChangeCallbacksceNpManagerIntAddPlusMemberTypeCallbacksceNpManagerIntAddSigninStateCallbacksceNpManagerIntAuthGetAuthorizationCodesceNpManagerIntAuthGetIdTokensceNpManagerIntCheckNpAvailabilitysceNpManagerIntCheckNpAvailabilityByPidsceNpManagerIntCheckNpStatesceNpManagerIntCheckNpStateAsceNpManagerIntClearGameAccessTokensceNpManagerIntClearOnlineIdChangeFlagsceNpManagerIntClearTicketsceNpManagerIntClearUsedFlagsceNpManagerIntClearVshAccessTokensceNpManagerIntCreateAuthenticationTicketsceNpManagerIntCreateLoginContextsceNpManagerIntCreateLoginRequestsceNpManagerIntCreateRequestsceNpManagerIntDeleteLoginContextsceNpManagerIntDeleteRequestsceNpManagerIntGetAccessTokenViaImplicitFlowsceNpManagerIntGetAccountAgesceNpManagerIntGetAccountCountrysceNpManagerIntGetAccountCountryAsceNpManagerIntGetAccountCountrySdksceNpManagerIntGetAccountDateOfBirthSdksceNpManagerIntGetAccountIdsceNpManagerIntGetAccountIdSdksceNpManagerIntGetAccountLanguagesceNpManagerIntGetAccountLanguageAsceNpManagerIntGetAccountNpEnvsceNpManagerIntGetAccountTypesceNpManagerIntGetActiveSigninStatesceNpManagerIntGetAuthServerErrorFlagsceNpManagerIntGetAuthorizationCodesceNpManagerIntGetAuthorizationCodeWithPsnoUrisceNpManagerIntGetClientCredentialAccessTokensceNpManagerIntGetCommunicationRestrictionStatussceNpManagerIntGetGameAccessTokensceNpManagerIntGetIssuerIdsceNpManagerIntGetNpEnvsceNpManagerIntGetNpIdsceNpManagerIntGetNpIdByOnlineIdsceNpManagerIntGetNpIdSdksceNpManagerIntGetOfflineAccountIdsceNpManagerIntGetOnlineIdsceNpManagerIntGetOnlineIdChangeFlagsceNpManagerIntGetOnlineIdSdksceNpManagerIntGetParentalControlFlagsceNpManagerIntGetParentalControlInfosceNpManagerIntGetPlusMemberTypesceNpManagerIntGetPlusMemberTypeNBsceNpManagerIntGetServerErrorsceNpManagerIntGetSigninStatesceNpManagerIntGetSigninTelemetryInfosceNpManagerIntGetTicketsceNpManagerIntGetTicketAsceNpManagerIntGetTitleTokensceNpManagerIntGetTitleTokenWithChecksceNpManagerIntGetUserIdByAccountIdsceNpManagerIntGetUserIdByNpIdsceNpManagerIntGetUserIdByOnlineIdsceNpManagerIntGetUserIdByOnlineIdSdksceNpManagerIntGetUserListsceNpManagerIntGetUserNumsceNpManagerIntGetVshAccessTokensceNpManagerIntGetVshAccessTokenWithChecksceNpManagerIntGetVshClientIdsceNpManagerIntIsSubAccountsceNpManagerIntIsTemporarySignoutsceNpManagerIntIsUnregisteredClientErrorsceNpManagerIntLoginAuthenticatesceNpManagerIntLoginBindsceNpManagerIntLoginCreateAuthenticationTicketsceNpManagerIntLoginGetAccessTokensceNpManagerIntLoginGetAccessTokenViaImplicitFlowsceNpManagerIntLoginGetAccountIdsceNpManagerIntLoginGetAuthenticateResponsesceNpManagerIntLoginGetDeviceCodeInfosceNpManagerIntLoginGetOnlineIdsceNpManagerIntLoginGetUserIdsceNpManagerIntLoginResetSsoTokensceNpManagerIntLoginRevalidatePasswordsceNpManagerIntLoginSigninsceNpManagerIntLoginValidateKratosAuthCodesceNpManagerIntLoginVerifyDeviceCodesceNpManagerIntPfAuthsceNpManagerIntRemoveActiveSigninStateCallbacksceNpManagerIntRemoveOnlineIdChangeCallbacksceNpManagerIntRemovePlusMemberTypeCallbacksceNpManagerIntRemoveSigninStateCallbacksceNpManagerIntRevalidatePasswordsceNpManagerIntSetPlusMemberTypeNBsceNpManagerIntSetRequestHeadersceNpManagerIntSetTimeoutsceNpManagerIntSignoutsceNpManagerIntSubmitUserCodesceNpManagerIntTemporarySignoutsceNpManagerIntUpdateBcAccessTokensceNpManagerIntUpdateVshAccessTokensceNpManagerPrxStartVshsceNpManagerPrxStopVshsceNpPush2CreateUserContextsceNpPush2DeleteUserContextsceNpPush2InitsceNpPush2IsInitsceNpPush2OptionalCheckCallbacksceNpPush2RegisterDataTypesceNpPush2RegisterExtendedDataFiltersceNpPush2RegisterNotificationExCallbacksceNpPush2SendPushStatisticsDataSystemTelemetrysceNpPush2SetGlobalMutexsceNpPush2SetNpCommunicationIdsceNpPush2TermsceNpPush2TriggerEmptyUserEventsceNpPush2UnregisterDataTypesceNpPush2UnregisterExtendedDataFiltersceNpPush2UnregisterNotificationExCallbacksceNpPush2UnsetNpCommunicationIdsceNpPush2WaitCallbacksceNpPushCheckCallbacksceNpPushInitsceNpPushIntBeginInactivesceNpPushIntEndInactivesceNpPushIntGetBindUserStatesceNpPushIntGetConnectionStatesceNpPushIntRegisterNotificationPacketCallbacksceNpPushIntUnregisterNotificationPacketCallbacksceNpPushRegisterExtendedDataFiltersceNpPushRegisterNotificationExCallbacksceNpPushStartNotificationsceNpPushStartNotificationAsceNpPushStopNotificationsceNpPushStopNotificationAsceNpPushTermsceNpPushUnregisterExtendedDataFiltersceNpPushUnregisterNotificationCallbacksceNpRegisterGamePresenceCallbackAsceNpRegisterStateCallbackForToolkitsceNpServiceClientInitsceNpServiceClientTermsceNpSetAdditionalScopesceNpSetGamePresenceOnlineAsceNpSetNpTitleIdVshsceNpUnregisterGamePresenceCallbackAsceNpUnregisterStateCallbackForToolkitsceNpWaitAsyncSome comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceNpManager/Export.cppdocs/dev/debt/libSceNpManager.mdcore/libs/prx/libSceNpManager/Export.cppImported from boykopovar/AnyPS5. Originally posted by juanpimg on 2026-10-20T23:51:01Z.
Closing this one: the open pull request #8747 declares 239 of the 255 exports this one declares, so keeping it would duplicate work that is already proposed. The 16 exports that are not in #8747 are a fragment of one library, and a separate pull request for them would add more review load than value.
The other export pull requests are being trimmed to the exports that #8747 does not declare, so that the set as a whole covers each export once.
Pull request closed