code wiki / _hdl_build / nx_mgmt_snapshot_run_gate.nx

nx_mgmt_snapshot_run_gate.nx

buildroot/runtime/_hdl_build/nx_mgmt_snapshot_run_gate.nx

3889 B61 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic mgmt
docsdependenciesstructsconstsfunctions

about

nx_mgmt_snapshot_run_gate.nx -- PURE isolation gate for the producer's INSTANCE-vs-fork-child rule (msr_is_instance). This is the refinement that makes the per-service `procs` count trustworthy on the NAS: a fork-per-connection server (sites.elf / the gateways) has ONE listener + N connection-handler children that all match the same cmdline; counting them raw would false-flag `dup`. The rule (setsid-independent): a matched proc is a CHILD iff its parent is another matched proc of the SAME service. Negative controls T2/T3 are the children (must be filtered); T4/T5 prove a GENUINE duplicate (both parented by the supervisor) is still counted twice. No IO. GREEN iff every rule holds. Sovereign: nx_mgmt_snapshot_run + nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_mgmt_snapshot_run.nx nx_syscalls.nx nx_mgmt_snapshot_run_gate.nx

imports: nx_mgmt_snapshot_run.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main g_w sys_write sys_mmap g_eq g_row g_w ↻ msr_is_instance sys_openat_append sys_write ↻ sys_close sys_exit

structs

none

consts

none

functions

11func g_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: g_rowmain calls 1: sys_write
12func g_row(name: *u8, ok: i64) -> i64
called by 1: g_eq calls 1: g_w
17func g_eq(name: *u8, got: i64, want: i64) -> i64 { var ok: i64 = 0; if got == want { ok = 1 } return g_row(name, ok) }
called by 1: main calls 1: g_row
19func main() -> i64