code wiki / _hdl_build / nx_store_sync.nx
nx_store_sync.nx
buildroot/runtime/_hdl_build/nx_store_sync.nx
about
nx_store_sync.nx -- sovereign reusable deploy tool: sync the native content-addressed store
(knowledge/store/hub-* + games-reg-*) to the NAS docroot store (/volume1/ai/hub/knowledge/store/), so the
hub gateway reads the latest cards/roles/maturity/games. Enumerates the dir (getdents64) and pushes each
file via nx_aw_push (fork/exec; it self-opens the vault + streams over SSH). No bash loops, no scratch .sh.
Requires /tmp/nx_aw_push.sov.elf built first (build nx_aw_push in the same call). license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_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
| 7 | const K_MAGIC_65536: i64 = 65536 |
| 8 | const K_MAGIC_1024: i64 = 1024 |
| 9 | const K_MAGIC_2048: i64 = 2048 |
functions
| 11 | func ss_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 ss_wfile(path: *u8, content: *u8, clen: i64) -> i64 |
| 17 | func ss_starts(name: *u8, pre: *u8) -> i64 called by 1: main |
| 22 | func ss_cat(buf: *u8, o: i64, s: *u8) -> i64 { var oo: i64=o; var i: i64=0; while s[i]!=(0 as u8){buf[oo]=s[i];oo=oo+1;i=i+1} return oo } called by 1: main |
| 25 | func ss_push() -> i64 |
| 40 | func main() -> i64 |