feat(libSceNpTus): delete title contexts and their requests #8242
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8242"
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 santhoshkumar-dev on 2026-10-20T06:22:52Z.
What
Title contexts in the newly added
libSceNpTusoccupy one of 32 slots for the process lifetime because the library has no deletion export. AddsceNpTusDeleteNpTitleCtx(int)and record each request's owning context so deleting a context releases its slot and all of its requests under the existing mutex. Unknown or already deleted contexts returnSCE_NP_COMMUNITY_ERROR_INVALID_ID; requests owned by another context remain usable.The export name is present in the PS5 3.20 inventory, with NID
H3uq7x0sZOI. The signature and child-request cleanup follow shadPS4. PS5 argument, error and lifetime behavior has not been measured on a console; the library's debt file records that gap.Overlap review: #6977 also declares
sceNpTusDeleteNpTitleCtx, but its current implementation only callsNotImplemented_nid_no_patchand has no parameters. This PR implements the verified signature and parent/request cleanup; it does not duplicate an implemented path in that branch.Tested
Windows x64, WinLibs MinGW-w64 GCC 15.2.0 r7, Release. Configured the full project with
BUILD_TESTING=ON.cmake --build build --target guest_np_tus_tests --parallel 8: passed, including the library and its libc/libkernel dependencies.ctest --test-dir build -R '^guest_np_tus$' --output-on-failure: passed (0.14 s).python tools/check_conventions.py --base origin/main: passed.git diff --check origin/main...HEAD: passed.The regression covers unknown and repeated deletion; invalidating idle, completed and aborted child requests; preserving another context's completed request; recycling all 32 context slots; reclaiming all 256 request slots through context deletion; and rejecting stale IDs.
No title or console hardware tested. The full test suite was not run.
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-20T06:23:23Z.
Progress report (
1ed63f6→971d8ba)📈 System libraries: 66.63% (+0.01%, +1 implemented functions)
✅ 1 implemented
sceNpTusDeleteNpTitleCtxImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T06:38:51Z.
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)sceNpTusDeleteNpTitleCtxdocs/dev/debt/libSceNpTus.mdL5Some 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/libSceNpTus/Export.cpp