nx_store_seed_lib.nx
buildroot/runtime/nx_store_seed_lib.nx
about
dependencies 3 imports · 114 importers
diagram shows first 10 each side; +0 more imports, +104 more importers in the complete lists below.
imports: nx_seg_store.nxnx_syscalls.nxnx_record_tsv.nx
imported by: nx_archcensus.nxnx_asset_page.nxnx_atlas_discover.nxnx_atlas_discover_gate.nxnx_atlas_gapscan.nxnx_atlas_gapscan_gate.nxnx_atlas_graphrec.nxnx_atlas_graphrec_lib.nxnx_backlog_feeder.nxnx_battery_grade.nxnx_bench_ingest.nxnx_browser_census.nxnx_cap_harvest.nxnx_carflip_deal.nxnx_clawf_route.nxnx_clock_sched.nxnx_clockjobs.nxnx_consolidate.nxnx_consolidate_gate.nxnx_ctxcost.nxnx_cwe_scan.nxnx_cwe_scan_gate.nxnx_dbtc_ppmi_probe2.nxnx_dbthyg.nxnx_debt.nxnx_debt_hygiene.nxnx_debt_plane_check.nxnx_debt_plane_gate.nxnx_debtcluster.nxnx_debtlive.nxnx_dedup_candidates.nxnx_dedup_migrate.nxnx_dmkt_ideator.nxnx_dora.nxnx_eco_scorecard.nxnx_eco_scorecard_gate.nxnx_editor_board.nxnx_eff_board_lib.nxnx_favela_census.nxnx_favela_census_gate.nxnx_feed.nxnx_fetchprobec.nxnx_flip_lib.nxnx_frontier_put.nxnx_frontier_store.nxnx_gen_orchestrator.nxnx_gen_rank.nxnx_gmmlu_ingest.nxnx_hw_envelope.nxnx_info_registry.nxnx_ingest_base.nxnx_input_scan.nxnx_jobhealth_gate.nxnx_k3_arch_census.nxnx_k3_arch_census_gate.nxnx_kind.nxnx_landed_cost.nxnx_langintel_axismap.nxnx_langintel_router.nxnx_law_warden.nxnx_libdata.nxnx_model_card.nxnx_netobs.nxnx_patch_guard.nxnx_plan_run.nxnx_plan_run_gate.nxnx_plane_append.nxnx_plane_check.nxnx_plane_migrate.nxnx_plane_repair.nxnx_plane_repair_gate.nxnx_planecap_gate.nxnx_pm_board.nxnx_pm_board_gate.nxnx_pm_dashboard.nxnx_pm_roi_lib.nxnx_product_atlas_build.nxnx_product_board.nxnx_product_decompose.nxnx_promptpack.nxnx_pub_desk.nxnx_pub_lib.nxnx_pub_reconcile.nxnx_registry.nxnx_regprof_test.nxnx_research_flow_gate.nxnx_research_ocean.nxnx_research_river.nxnx_rulers_page.nxnx_seat.nxnx_sheriff.nxnx_sheriff_gate.nxnx_sov_guard2.nxnx_sov_guard2_gate.nxnx_store_compact.nxnx_store_hist.nxnx_store_put.nxnx_store_put_gate.nxnx_store_put_shrink_gate.nxnx_store_seed.nx +14 more (shown cap 100 declared)
structs
| none |
consts
| 11 | const STS_WCAP: i64 = 8388608 // RETIRED as the writer cap (see sts_seed); kept only for callers that still name it |
| 12 | const STS_ROWOVH: i64 = 32 // per-entry seg-store header: kind + u32 klen + u32 vlen, with margin |
| 13 | const STS_WSLACK: i64 = 65536 // count row + commit slack |
| 46 | const STS_HASH: i64 = 35 // '#' |
| 47 | const STS_NL: i64 = 10 // '\n' |
| 48 | const STS_Q: i64 = 113 // 'q' |
| 49 | const STS_COLON: i64 = 58 // ':' |
| 50 | const STS_ZERO: i64 = 48 // '0' |
| 51 | const STS_NINE: i64 = 57 // '9' |
| 52 | const STS_KIND_LIVE: i64 = 1 // seg-store live-record kind (2 = tombstone) |
| 53 | const STS_KEYCAP: i64 = 64 |
| 54 | const STS_NUMCAP: i64 = 28 |
| 55 | const STS_OUTCAP: i64 = 16 |
| 56 | const STS_BASE10: i64 = 10 |
| 57 | const STS_KPFX: i64 = 2 // "q:" prefix length |
| 58 | const STS_EXIT_MMAP: i64 = 9 |
| 59 | const STS_MMAP_ERRMAX: i64 = 4096 |
| 60 | const STS_PROBE_WINDOW: i64 = 4096 // detect-only probe span past the declared q:n |
| 61 | const STS_PROBE_MISS_RUN: i64 = 64 // consecutive misses that end the probe (sparse-tail guard) |
| 62 | const STS_ERRFD: i64 = 2 |
| 81 | const STS_NXR_HDR: i64 = 6 |
| 82 | const STS_NXR_N: i64 = 78 |
| 83 | const STS_NXR_X: i64 = 88 |
| 84 | const STS_NXR_R: i64 = 82 |
| 85 | const STS_NXR_1: i64 = 49 |
| 367 | const STS_LOCK_EX: i64 = 2 |
| 368 | const STS_LOCK_UN: i64 = 8 |
| 369 | const STS_LOCKMODE: i64 = 420 |
| 370 | const STS_LOCKPATHCAP: i64 = 256 |
| 371 | const STS_ERR_LOCK: i64 = 0 - 3 |
| 372 | const STS_ERR_CAP: i64 = 0 - 4 |
functions
| 70 | func sts_werr(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(STS_ERRFD, s, n); return 0 } |
| 71 | func sts_mm(n: i64) -> *u8 |
| 96 | func sts_emit_row(src: *u8, vl: i64, out: *u8, off: i64, cap: i64) -> i64 |
| 112 | func sts_atoi(b: *u8, n: i64) -> i64 |
| 125 | func sts_rowkey(seq: i64, out: *u8) -> i64 called by 9: pa_append_fastmainpg_make_damagedsg_make_damagedsts_seedsts_append_fast+3 calls 1: ss_catn |
| 133 | func sts_seed(prefix: *u8, buf: *u8, n: i64) -> i64 |
| 210 | func sts_append_fast(prefix: *u8, row: *u8, rowlen: i64) -> i64 called by 3: mainmainsts_append_fast_locked calls 9: sts_mmss_getsts_atoists_rowkeyss_catnss_begin_cap+3 |
| 253 | func sts_load(prefix: *u8, out: *u8, cap: i64) -> i64 called by 101: mainmainmainmainbf_sweepbf_selftest+95 calls 6: ss_open_cachedsts_mmss_hgetsts_atoists_rowkeysts_emit_row |
| 301 | func sts_load_honest(prefix: *u8, out: *u8, cap: i64, flags: *i64) -> i64 called by 20: maindb_load_guardedmainmainmainmain+14 calls 6: ss_open_cachedsts_mmss_hgetsts_atoists_rowkeysts_emit_row |
| 376 | func sts_lock(prefix: *u8) -> i64 |
| 392 | func sts_unlock(fd: i64) -> i64 called by 7: ct_seedpa_unlockreg_put_xmainsts_append_rowsts_append_fast_locked+1 calls 2: sys_flocksys_close |
| 404 | func sts_append_row(prefix: *u8, row: *u8, rowlen: i64, cap: i64) -> i64 |
| 424 | func sts_append_fast_locked(prefix: *u8, row: *u8, rowlen: i64) -> i64 |
| 434 | func sts_load_slow(prefix: *u8, out: *u8, cap: i64) -> i64 |