libSceRudp: seven absent exports Demon Slayer imports, and End/Terminate swapped; fix branch ready #3445
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 screamm on 2026-10-11T10:44:17Z.
libSceRudp lacks seven exports that Demon Slayer (PPSA03490) imports:
sceRudpNetFlush,sceRudpProcessEvents,sceRudpGetMaxSegmentSize,sceRudpGetNumberOfPacketsToRead,sceRudpGetSizeWritable,sceRudpGetSizeReadable,sceRudpNetReceived(#3073: "7 absent, all in libSceRudp", with console measurements by hugodearaujo on firmware 13.60). On top of thatmainhassceRudpEndandsceRudpTerminateswapped.Fix branch ready:
screamm:feat/rudp-absent-calls(two commits onmaincfbd516c:7b33fe41fix(libSceRudp): swap sceRudpEnd and sceRudpTerminate,a5b1cf2bfeat(libSceRudp): implement the net flush, event and size queries). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commits as they are.sceRudpEnd(void)shuts the library down andsceRudpTerminate(int ctx)releases a context; three sources agree (the #3073 measurement "aftersceRudpEnd()all three return0x80770001again", Orbitaldb_types.jsonlines 1971 and 1996, RPCS3cellRudp.cppand the Vita3K forkSceLibRudp.cpp); the bodies are exchanged, nothing else changes,guest_offline_importsfollows.GetMaxSegmentSizewrites the measured 1410 (null pointer0x80770004);ProcessEvents(sleeps the microsecond timeout as fpPS4 does) andNetFlushreturn 0 after init; all three return0x80770001before init as measured. The context queries check not-initialised, negative id (0x80770004), unknown id (0x80770003), then answer 0 packets and0x80770011(NOT_ACCEPTABLE) for the size queries on any context, since no context can connect offline (check order and the unconnected gate from the Vita3K fork).NetReceivedthrows (unmeasured, uncalled);ProcessEvents/NetFlushthrow once the internal I/O thread is enabled (the measurement does not cover it). TechnicalDebt lists measured vs. assumed.guest_rudp_statusruns each call before init, after init without a context, on created, bound and initiated contexts, after terminate, with the I/O thread on, after End and after a second init.Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs:guest_rudp_statusandguest_offline_imports3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"527/528, the one failure beingwindows_exceptionswhich fails on unchangedmainsince #1423 (#3411); withmain'sExport.cppboth tests fail;tools/check_conventions.py --base mainandgit diff --checkpass. Not run on Linux, no title run.Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T13:08:48Z.
Independent verification on Linux: CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON.Note first: this branch partially overlaps main now.
58bf763e8has since implementedsceRudpGetNumberOfPacketsToRead,sceRudpGetSizeWritableandsceRudpGetSizeReadable, and4c4e789a3settledsceRudpEnd(int)(per-context) andsceRudpTerminate(void)(global) — the opposite of this branch's End/Terminate signatures. The rebased branch therefore:GuestOfflineImports) to them,sceRudpProcessEvents,sceRudpNetFlush,sceRudpNetReceivedandsceRudpGetMaxSegmentSize— and theg_io_threadtracking.Verified:
tools/check_conventions.pyandgit diff --checkpass;guest_rudp_status,guest_rudp_context_queriesandguest_offline_importspass; full suite 832/832 on AMD RX 9070 XT / RADV.The rebased branch is available at
blawesom:verify/3445for anyone carrying — the four new exports and their tests are unchanged, the overlap adaptations are as above.Imported from boykopovar/AnyPS5. Originally posted by ArekatlaNishanthchowdary on 2026-10-11T17:44:13Z.
Corrected: when I first posted this I had missed #3823, which was already open and adds
sceRudpProcessEvents,sceRudpNetFlush,sceRudpGetMaxSegmentSizeandsceRudpNetReceived. My branch no longer carries those; it is reduced to the part #3823 does not cover, thesceRudpEnd/sceRudpTerminateswap.Branch:
ArekatlaNishanthchowdary:feat/rudp-absent-calls(48ad3fd44, force-pushed over3afdbca85), two commits on currentmain(a11c8f7f7):97dbd517b: @screamm'sfix(libSceRudp): swap sceRudpEnd and sceRudpTerminate, unchanged, authorship kept.48ad3fd44:guest_rudp_context_queries(added onmainin58bf763e8) calledsceRudpEnd(context)andsceRudpTerminate(); it follows the swap.The second commit of the original branch is dropped:
mainalready has the three context queries, and #3823 covers the other four calls.Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release:
guest_rudp_status,guest_rudp_context_queriesandguest_offline_importspass. Fullctestnot run on the reduced branch.tools/check_conventions.py --base origin/mainpasses. No title or homebrew run. Linux not run.My one open-PR slot is taken by #3744, so I will open the swap as a PR once that is merged or closed.
AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T00:08:33Z.
Closing: #3823 added the four missing calls, the other three were already on main, and #3973 fixed End/Terminate. Comment here if PPSA03490 still stops in libSceRudp on current main.