code wiki / _hdl_build / nx_capreg_restore.nx

nx_capreg_restore.nx

buildroot/runtime/_hdl_build/nx_capreg_restore.nx

1128 B21 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic capreg
docsdependenciesstructsconstsfunctions

about

nx_capreg_restore.nx -- the LIBRARIAN's production registry repair driver: canonicalize the NTFS journal (dedup the snapshot bloat, renumber the 212-227 cross-session collisions ONCE) and restore the crash-wiped live registry at /tmp/nishi_cap_registry.log. Idempotent: re-running on the canonical journal is a pure dedup (KAT-proven stable). Run from the repo root. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_capreg_librarian.nx nx_syscalls.nx nx_capreg_restore.nx

imports: nx_capreg_librarian.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 cl_max_idx sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close cl_is_entry cl_parse_int cl_line_end cl_canonicalize cl_regen sys_mmap ↻ sys_read_file ↻ cl_is_entry ↻ cl_parse_int ↻ cl_line_end ↻ cl_cats sys_openat_wr cl_emit_entry cl_parse_int ↻ cl_digits_end cl_hash_range cl_w sys_write cl_wn nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap sys_write ↻ sys_close ↻ cl_rename sys_mmap ↻ cl_cats ↻ sys_openat_rd ↻ sys_close ↻

structs

none

consts

none

functions

8func main() -> i64