code wiki / (root) / nx_registry.nx

nx_registry.nx

buildroot/runtime/nx_registry.nx

10978 B197 linesdepth 5pulls 6 transitivereach 198 importersview sourcekind librarytopic registry
docsdependenciesstructsconstsfunctions

about

nx_registry.nx -- canonical generic seg_store keyed registry (put / get / enumerate), parameterized by a key-prefix and an index key. Append-only / immutable (history kept). One commit advances both the record and the index, so enumeration is atomic. The blocklist store + the tool registry are the same shape; this is the ONE implementation they share (nx_blocklist_store can fold onto this later). Importable (no main). license_tier: ORIGINAL

dependencies 2 imports · 22 importers

nx_seg_store.nx nx_store_seed_lib.nx nx_registry.nx nx_companion_memory.nx nx_companion_rel.nx nx_elara_state.nx nx_matter_lib.nx nx_mvault.nx nx_mvault_caption.nx nx_mvault_coll.nx nx_mvault_embed.nx nx_mvault_fetch.nx nx_mvault_record.nx

diagram shows first 10 each side; +0 more imports, +12 more importers in the complete lists below.

imports: nx_seg_store.nxnx_store_seed_lib.nx

imported by: nx_companion_memory.nxnx_companion_rel.nxnx_elara_state.nxnx_matter_lib.nxnx_mvault.nxnx_mvault_caption.nxnx_mvault_coll.nxnx_mvault_embed.nxnx_mvault_fetch.nxnx_mvault_record.nxnx_persona.nxnx_regbatch_gate.nxnx_regfix_gate.nxnx_registry_bounds_gate.nxnx_regprof_test.nxnx_resource.nxnx_sign_envelope_lib.nxnx_svcreg.nxnx_task.nxnx_tool_registry.nxnx_vault_gateway.nxnx_visual_arc.nx

structs

none

consts

none

functions

8func reg_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){ dst[off+i]=s[i]; i=i+1 } return off+i }
called by 1: reg_key
9func reg_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: reg_put_x
12func reg_key(kbuf: *u8, kp: *u8, id: *u8) -> i64
called by 2: reg_put_xreg_get calls 1: reg_cat
20func reg_id_present(buf: *u8, n: i64, id: *u8, idlen: i64) -> i64
35func reg_put_x(prefix: *u8, kp: *u8, idxkey: *u8, id: *u8, record: *u8, reclen: i64, do_sync: i64) -> i64
118func reg_put(prefix: *u8, kp: *u8, idxkey: *u8, id: *u8, record: *u8, reclen: i64) -> i64
128func reg_put_deferred(prefix: *u8, kp: *u8, idxkey: *u8, id: *u8, record: *u8, reclen: i64) -> i64
called by 1: main calls 1: reg_put_x
133func reg_batch_sync(prefix: *u8) -> i64
called by 1: main calls 1: ss_sync_now
138func reg_get(prefix: *u8, kp: *u8, id: *u8, ptrout: *i64, lenout: *i64) -> i64
171func reg_index_open(prefix: *u8, idxkey: *u8, ptrout: *i64, lenout: *i64) -> i64
177func reg_index_len(prefix: *u8, idxkey: *u8) -> i64
called by 1: main calls 1: ss_get
188func reg_index(prefix: *u8, idxkey: *u8, idxbuf: *u8, cap: i64) -> i64