code wiki / _hdl_build / nx_store_lineage.nx

nx_store_lineage.nx

buildroot/runtime/_hdl_build/nx_store_lineage.nx

7684 B145 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic store
docsdependenciesstructsconstsfunctions

about

nx_store_lineage.nx -- the LINEAGE rung over the store catalog (DataHub/OpenLineage-class): for each organ, which seg_stores does it reference, and as PRODUCER (writes -> ss_commit/ncfg_commit) or CONSUMER (reads -> ss_open/ss_hget/ncfg_open). ONE sovereign getdents walk over runtime/ + _hdl_build/, READ-ONLY / ADDITIVE (touches nothing). Matches the literal "knowledge/store/<name>" prefix in organ source (static-prefix edges; dynamically-built prefixes are counted separately, honest). Composes nx_seg_store (ss_readall/ss_cat). Self-verifies: the nx_algo_registry_migrate -> algo-registry PRODUCER edge is found. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_seg_store.nx nx_syscalls.nx nx_store_lineage.nx

imports: nx_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 ln_puts sys_write sys_mmap ln_walk sys_openat_rd sys_mmap ↻ sys_getdents64 dirent_reclen dirent_name ln_ends ln_len ss_cat ss_readall sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read sys_close ln_has ln_find ln_len ↻ ln_find ↻ ln_isnc ln_puts ↻ ln_len ↻ sys_write ↻ sys_close ↻ ln_putn sys_write ↻ sys_mmap ↻

structs

none

consts

10const K_MAGIC_262144: i64 = 262144
11const K_MAGIC_1024: i64 = 1024
12const K_MAGIC_2097152: i64 = 2097152

functions

14func ln_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 2: ln_walkmain calls 1: sys_write
15func ln_putn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
25func ln_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
26func ln_ends(name: *u8, suf: *u8) -> i64
called by 1: ln_walk calls 1: ln_len
34func ln_find(buf: *u8, n: i64, start: i64, needle: *u8, nlen: i64) -> i64
called by 2: ln_hasln_walk
45func ln_has(buf: *u8, n: i64, needle: *u8) -> i64 { if ln_find(buf, n, 0, needle, ln_len(needle)) >= 0 { return 1 } return 0 }
called by 1: ln_walk calls 2: ln_findln_len
47func ln_isnc(c: i64) -> i64
called by 1: ln_walk
55func ln_walk(dir: *u8, acc: *i64) -> i64
133func main() -> i64