code wiki / _hdl_build / nx_store_seed.nx

nx_store_seed.nx

buildroot/runtime/_hdl_build/nx_store_seed.nx

2274 B55 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind tooltopic store
docsdependenciesstructsconstsfunctions

about

nx_store_seed.nx -- THE generic "migrate any flat plane into a sovereign seg-store" CLI (operator 2026-07-17: unify store-seed; the review found ~30 bespoke per-plane seeders and no generic). nx_store_seed <store-prefix> <staging-file> -> migrate the flat file into the store, print row count nx_store_seed <store-prefix> load -> dump the store as newline-joined rows (store-emitted view) Store-law: the flat staging file is put-file staging; the seg-store is the SSOT. Reuses sts_seed/sts_load. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 3 imports · 0 importers

nx_store_seed_lib.nx nx_seg_store.nx nx_syscalls.nx nx_store_seed.nx

imports: nx_store_seed_lib.nxnx_seg_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 nss_werr sys_write sys_exit sys_mmap sts_load ss_open_cached ssc_init sys_mmap ↻ ssc_sig_of ss_cat sys_fstatat ssc_streq ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_cat ↻ ss_loadfile sys_map_file ss_readall ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ssl_total_keys ss_r32 ↻ ssl_pow2 ssl_build ss_r32 ↻ ssl_hash_entry ssl_key_eq ss_r32 ↻ ssl_lookup ssl_hash_entry ↻ ssl_key_eq ↻ ss_manifest_free

structs

none

consts

11const NSS_STDERR: i64 = 2
12const NSS_ARGC_MIN: i64 = 3
13const NSS_IDX_SRC: i64 = 2
14const NSS_L: i64 = 108 // 'l' of "load"
15const NSS_NL: i64 = 10
16const NSS_CAP: i64 = 1048576
17const NSS_SZCAP: i64 = 16
18const NSS_MSGCAP: i64 = 128
19const NSS_EXIT_USAGE: i64 = 2

functions

21func nss_werr(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(NSS_STDERR, s, n); return 0 }
called by 1: main calls 1: sys_write
23func main(argc: i64, argv: *i64) -> i64