code wiki / _hdl_build / nx_store_catalog.nx

nx_store_catalog.nx

buildroot/runtime/_hdl_build/nx_store_catalog.nx

5742 B116 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tooltopic store
docsdependenciesstructsconstsfunctions

about

nx_store_catalog.nx -- the sovereign DATA CATALOG: discover every seg_store under knowledge/store/ and report its segment count + entry count. The s-class-IM DISCOVERY rung (DataHub/OpenLineage-class catalog), READ-ONLY / ADDITIVE (touches no store, no consumer -> zero break risk). Composes nx_seg_store (ss_manifest_cap / ss_load_aux / ss_r32) -- a store is any "<name>manifest.txt" under knowledge/store/. Self-verifies: the largest store has >=3000 entries (the algo-registry consolidated this session). NEXT rung = lineage (who produces/consumes each store). expect_exit: 0 license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_seg_store.nx nx_syscalls.nx nx_estate_path.nx nx_store_catalog.nx

imports: nx_seg_store.nxnx_syscalls.nxnx_estate_path.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main ep_anchor sys_openat_rd sys_close sys_chdir sys_mmap sc_puts sys_write sys_openat_rd ↻ sys_mmap ↻ sys_getdents64 dirent_reclen dirent_name sc_ends sc_len sc_len ↻ ss_cat sc_stat sys_mmap ↻ ss_manifest_cap ss_manifest_file_cap sys_mmap ↻ ss_cat ↻ ss_readall sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read sys_close ↻ ss_load_aux ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile sys_map_file sys_openat_rd ↻ sys_lseek ↻ sys_close ↻ ss_readall ↻ ss_r32

structs

none

consts

10const K_MAGIC_262144: i64 = 262144
11const K_MAGIC_3000: i64 = 3000

functions

13func sc_puts(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
14func sc_putn(v: i64) -> i64
called by 1: main calls 3: sys_writesys_mmapsys_munmap
34func sc_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: sc_endsmain
36func sc_ends(name: *u8, suf: *u8) -> i64
called by 1: main calls 1: sc_len
44func sc_stat(prefix: *u8, out_seg: *i64) -> i64
60func main() -> i64