code wiki / _hdl_build / nx_route_ctl_gate.nx

nx_route_ctl_gate.nx

buildroot/runtime/_hdl_build/nx_route_ctl_gate.nx

7853 B108 linesdepth 6pulls 15 transitivereach 0 importersview sourcekind gate/prooftopic route
docsdependenciesstructsconstsfunctions

about

nx_route_ctl_gate.nx -- proves the API-pure route-control primitives (md_route_valid + md_route_append) BEFORE they can touch the live edge proxy table. NEVER-BRICK RELEVANT: a malformed proxy_routes.conf row is edge-wide, so validation is fail-closed by construction and the upsert must preserve every UNRELATED row. Exercised only against a /tmp fixture -- never the real proxy_routes.conf. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_mgmt_data.nx nx_route_ctl_gate.nx

imports: nx_mgmt_data.nx

imported by: nobody (leaf or entry point)

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

main rg_w rg_eq rg_w ↻ rg_wn md_catn md_route_valid md_len md_cstr_eq

structs

none

consts

none

functions

7func rg_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: rg_eqmain
8func rg_wn(v: i64) -> i64 { let b: *u8 = sys_mmap(32); let o: i64 = md_catn(b, 0, v); b[o] = 10 as u8; sys_write(1, b, o + 1); return 0 }
called by 1: rg_eq calls 1: md_catn
11func rg_eq(name: *u8, got: i64, want: i64) -> i64
called by 1: main calls 2: rg_wrg_wn
16func rg_seed(path: *u8, s: *u8) -> i64
calls 1: sys_openat_wr
25func rg_countlines(buf: *u8, n: i64) -> i64
called by 1: rg_lines
31func rg_has(path: *u8, needle: *u8) -> i64
40func rg_lines(path: *u8) -> i64
48func main(argc: i64, argv: *i64) -> i64