code wiki / _hdl_build / nx_store_lineage.nx
nx_store_lineage.nx
buildroot/runtime/_hdl_build/nx_store_lineage.nx
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
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
structs
| none |
consts
| 10 | const K_MAGIC_262144: i64 = 262144 |
| 11 | const K_MAGIC_1024: i64 = 1024 |
| 12 | const K_MAGIC_2097152: i64 = 2097152 |
functions
| 14 | func 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 } |
| 15 | func ln_putn(v: i64) -> i64 |
| 25 | func ln_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 26 | func ln_ends(name: *u8, suf: *u8) -> i64 |
| 34 | func ln_find(buf: *u8, n: i64, start: i64, needle: *u8, nlen: i64) -> i64 |
| 45 | func ln_has(buf: *u8, n: i64, needle: *u8) -> i64 { if ln_find(buf, n, 0, needle, ln_len(needle)) >= 0 { return 1 } return 0 } |
| 47 | func ln_isnc(c: i64) -> i64 called by 1: ln_walk |
| 55 | func ln_walk(dir: *u8, acc: *i64) -> i64 |
| 133 | func main() -> i64 |