code wiki / _hdl_build / _pe_dchan_reorder.nx

_pe_dchan_reorder.nx

buildroot/runtime/_hdl_build/_pe_dchan_reorder.nx

6212 B109 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic pe
docsdependenciesstructsconstsfunctions

about

_pe_dchan_reorder.nx -- X-ROOM-DC-003 rung-3 RELIABILITY DATA PLANE (the ACTION layer the spec flagged as the emitter frontier: "seq-number arithmetic + payload reorder-buffer ... wired at integration"). COMPOSES the organ-authored FSM control core _pe_dchan_arq (states/transitions = WHEN to retransmit) with the data-plane ACTIONS (WHAT: in-order delivery under loss+reorder). dp_recv: a sliding-window reorder buffer -- buffer out-of-order seqs, deliver contiguous from base, dedup old seqs, drop out-of-window, cumulative-ack = base (next expected). This is the N-party correctness layer (a 2-peer TCP room gets order free; N>2 / late-join needs this). HONEST AUTHORSHIP (memory discipline): the FSM TABLE is organ-emitted (_pe_dchan_arq); these ACTIONS are hand-built -- a DECLARED SCAFFOLD, emitter-of-emitters back-fill OWED (X-AUT-012 class). Gate is self-validating: FSM send/ack/timeout-retransmit control + reorder/loss/dup data plane, with a neg-control (a broken pass-through would deliver out-of-order -> RED).

dependencies 1 imports · 0 importers

_pe_dchan_arq.nx _pe_dchan_reorder.nx

imports: _pe_dchan_arq.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main _pe_dchan_arq_step _pe_dchan_arq_run _pe_dchan_arq_step ↻ dp_recv dr_w dr_n sys_openat_append

structs

none

consts

none

functions

14func dr_w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 }
called by 1: main
15func dr_n(fd: i64, v: i64) -> i64
called by 1: main
24func dp_recv(seq: i64, payload: i64, present: *i64, payl: *i64, base_box: *i64, WIN: i64, got: *i64, ng_box: *i64) -> i64
called by 1: main
45func main(argc: i64, argv: *i64) -> i64