code wiki / _hdl_build / nx_iot_ws_inject.nx

nx_iot_ws_inject.nx

buildroot/runtime/_hdl_build/nx_iot_ws_inject.nx

4635 B86 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic iot
docsdependenciesstructsconstsfunctions

about

nx_iot_ws_inject.nx -- inject the IoT killer-feature workstreams into the WMS SSOT (knowledge/store/ws-*, the registry the team/board reads) via the store's OWN API -- index- consistent + idempotent + byte-verified (no raw seg-store write, no clobbering the seeder). Registers: IOT-R4LIVE (DONE -- I built+gated nx_iot_hub_serve_realm) and PULSE-REVIVE (ACTIVE -- the engineer's progress-aware-revive task). Operator 2026-06-23 "both: inject + I build". expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_workstream_store.nx nx_syscalls.nx nx_iot_ws_inject.nx

imports: nx_workstream_store.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 sys_now_realtime_sec sys_mmap sys_clock_gettime_real sys_mmap ↻ iwi_rec iwi_cat iwi_catn sys_mmap ↻ iwi_put_verify ws_put sys_mmap ↻ sys_openat_append ws_put_p sys_mmap ↻ ws_len ss_get sys_mmap ↻ ss_scan sys_mmap ↻ ss_manifest_dyn ss_scan_seglist ss_begin ss_begin_cap sys_mmap ↻ ss_add ss_add2 ss_w32 ss_len ws_seg_next ss_next_segid sys_mmap ↻ ss_cat ss_readall ss_segid_ok ss_commit ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn

structs

none

consts

9const K_MAGIC_262144: i64 = 262144

functions

11func iwi_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 1: main calls 1: sys_write
12func iwi_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){dst[off+i]=s[i]; i=i+1} return off+i }
called by 2: iwi_recmain
13func iwi_catn(dst: *u8, off: i64, v: i64) -> i64
called by 1: iwi_rec calls 1: sys_mmap
20func iwi_has(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main
28func iwi_rec(out: *u8, id: *u8, empire: *u8, state: *u8, now: i64, mem: *u8, code: *u8) -> i64
called by 1: main calls 2: iwi_catiwi_catn
41func iwi_put_verify(idkey: *u8, rec: *u8) -> i64
called by 1: main calls 3: ws_putsys_mmapws_get
52func main() -> i64