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
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
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
structs
| none |
consts
| none |
functions
| 11 | func 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 } |
| 12 | func g_row(name: *u8, ok: i64) -> i64 |
| 17 | func g_eq(name: *u8, got: i64, want: i64) -> i64 { var ok: i64 = 0; if got == want { ok = 1 } return g_row(name, ok) } |
| 19 | func main() -> i64 |