code wiki / _hdl_build / nx_race_sov_worker.nx

nx_race_sov_worker.nx

buildroot/runtime/_hdl_build/nx_race_sov_worker.nx

6629 B184 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind tooltopic race
docsdependenciesstructsconstsfunctions

about

nx_race_sov_worker.nx -- the SOVEREIGN LANE of the IM6 beat-sqlite race. Does the exact same logical storage work the competitor lane does, and self-times ONLY the storage-engine work (parse excluded on both lanes): write <prefix>: bulk-load the unique census records -> one committed segment (fsync'd, indexed) -> SOVW us= count= read <prefix>: keyed lookup of every record via the binary-search index path, verifying each is found -> SOVR us= count= The orchestrator (nx_infomgmt_race) compares these numbers against the sqlite lane's self-timed numbers. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_canon_cid.nx nx_seg_store.nx nx_race_sov_worker.nx

imports: nx_syscalls.nxnx_itoa_lib.nxnx_canon_cid.nxnx_seg_store.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main rw_p sys_write sys_mmap rw_parse sys_mmap ↻ ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close rw_starts rw_streq canon_encode sys_mmap ↻ cc_cmp cc_w32 cc_len sys_munmap ss_cat rw_streq ↻ sys_now_us sys_mmap ↻ sys_clock_gettime_mono ss_begin ss_begin_cap sys_mmap ↻ ss_add ss_add2 ss_w32 ss_len ss_commit ss_segid_ok sys_mmap ↻ ss_cat ↻ ss_catn sys_mmap ↻ sys_write ↻ ss_write_seg

structs

none

consts

15const K_MAGIC_1000000000: i64 = 1000000000
16const K_MAGIC_2048: i64 = 2048
17const K_MAGIC_1024: i64 = 1024

functions

19func rw_p(s: *u8) -> i64
called by 1: main calls 1: sys_write
30func rw_pn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
32func rw_starts(b: *u8, off: i64, lim: i64, s: *u8) -> i64
called by 1: rw_parse
42func rw_streq(a: *u8, b: *u8) -> i64
called by 2: rw_parsemain
54func rw_parse(kout: *i64, eout: *i64, lout: *i64) -> i64
134func main(argc: i64, argv: *i64) -> i64