code wiki / _hdl_build / nx_ns_probe.nx

nx_ns_probe.nx

buildroot/runtime/_hdl_build/nx_ns_probe.nx

1908 B36 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_ns_probe.nx -- R2-A NISHI CONTAINERS rung 0: does the sovereign syscall layer speak Linux NAMESPACES? Probes unshare(2) with UTS/MNT/PID flags. rv64 unshare = 97 (__syscall translates rv64->x86 272). Readout law: 0 = namespace created (running as root) ; -EPERM(-1) = syscall WIRED, needs privilege (still a PASS for the layer) ; -ENOSYS(-38) = TRANSLATION GAP = raised hand. Run VIA nx_sov_build_run; trust run-exit only. exit: 0=wired(0/EPERM), 1=ENOSYS gap, 2=other. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_sovjson_lib.nx nx_syscalls.nx nx_ns_probe.nx

imports: nx_sovjson_lib.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 np_try np_w sj_puts sys_write np_n sys_mmap np_w ↻ sys_write ↻ sys_mmap ↻ np_w ↻ sys_exit

structs

none

consts

none

functions

10func np_w(s: *u8) -> i64 { return sj_puts(s) }
called by 3: np_nnp_trymain calls 1: sj_puts
11func np_n(v: i64) -> i64 { let b: *u8=sys_mmap(28); var m: i64=v; if m<0 {m=0-m; np_w("-" as *u8)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0 {t[0]=48 as u8;k=1}; while m>0 {t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k {b[i]=t[k-1-i];i=i+1}; sys_write(1,b,k); return 0 }
called by 1: np_try calls 3: sys_mmapnp_wsys_write
13func np_try(name: *u8, flags: i64) -> i64
called by 1: main calls 2: np_wnp_n
19func main() -> i64