code wiki / (root) / nx_vsz_watchdog_gate.nx

nx_vsz_watchdog_gate.nx

buildroot/runtime/nx_vsz_watchdog_gate.nx

5328 B95 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic vsz
docsdependenciesstructsconstsfunctions

about

nx_vsz_watchdog_gate.nx -- gate for the VSZ-watchdog CORE (outage MODE 2 permanent fix). Teeth: conf-row parsing (comment/blank/malformed/zero-gb all DROPPED fail-safe), VmSize parse from a real-format status fixture, the kill decision (below-threshold / unknown-vsz / cooldown-active all -> NO KILL; only sane+over+ cooled -> kill), needle containment, and LIVE /proc/self reads (selfpid>0, own VmSize>0). The CLI's walk+kill is deliberately NOT exercised here (killing real pids in a gate = reckless); the live kill path is proven on the NAS against a synthetic mmap-pig. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_vsz_watchdog_core.nx nx_vsz_watchdog_gate.nx

imports: nx_syscalls.nxnx_vsz_watchdog_core.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

10func g_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
11func g_putn(v: i64) -> i64
21func g_chk(st: *i64, ok: i64, label: *u8) -> i64
26func g_scpy(dst: *u8, src: *u8) -> i64 { var i: i64 = 0; while src[i] != (0 as u8) { dst[i] = src[i]; i = i + 1 } dst[i] = 0 as u8; return i }
28func main() -> i64