nx_registry.nx
buildroot/runtime/nx_registry.nx
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
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
| 8 | func 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 |
| 9 | func 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 |
| 12 | func reg_key(kbuf: *u8, kp: *u8, id: *u8) -> i64 |
| 20 | func reg_id_present(buf: *u8, n: i64, id: *u8, idlen: i64) -> i64 |
| 35 | func reg_put_x(prefix: *u8, kp: *u8, idxkey: *u8, id: *u8, record: *u8, reclen: i64, do_sync: i64) -> i64 called by 2: reg_putreg_put_deferred calls 11: sts_lockreg_keyss_getreg_strlenreg_id_presentsts_unlock+5 |
| 118 | func reg_put(prefix: *u8, kp: *u8, idxkey: *u8, id: *u8, record: *u8, reclen: i64) -> i64 called by 47: bl_time_putbox_doc_putcit_treat_putcite_source_putclm_obligation_putcoa_put+41 calls 1: reg_put_x |
| 128 | func reg_put_deferred(prefix: *u8, kp: *u8, idxkey: *u8, id: *u8, record: *u8, reclen: i64) -> i64 |
| 133 | func reg_batch_sync(prefix: *u8) -> i64 |
| 138 | func reg_get(prefix: *u8, kp: *u8, id: *u8, ptrout: *i64, lenout: *i64) -> i64 called by 47: bl_matter_totalmainbox_matter_scancit_statuscite_source_textclm_overdue+41 calls 2: reg_keyss_get |
| 171 | func reg_index_open(prefix: *u8, idxkey: *u8, ptrout: *i64, lenout: *i64) -> i64 |
| 177 | func reg_index_len(prefix: *u8, idxkey: *u8) -> i64 |
| 188 | func reg_index(prefix: *u8, idxkey: *u8, idxbuf: *u8, cap: i64) -> i64 called by 20: bl_matter_totalbox_matter_scancit_statusclm_overduemem_count_pfxes_timeline_emit+14 calls 1: ss_get |