nx_seg_store.nx
buildroot/runtime/nx_seg_store.nx
about
dependencies 1 imports · 416 importers
diagram shows first 10 each side; +0 more imports, +406 more importers in the complete lists below.
imports: nx_syscalls.nx
imported by: _gallery_serve_ref.nx_galx_bulk_ingest.nx_galx_ingest_gate.nx_galx_prod_ingest.nx_galx_serve_setup.nx_ixprof.nx_queue_load_gate_authored.nx_ss_compact_cap_gate.nx_wiki_archive_gate.nx_wiki_search_gate.nxnx_account_admin_exceed_gate.nxnx_acct_admin_handoff.nxnx_activities.nxnx_activities_gate.nxnx_ad_feedback_gate.nxnx_ad_intake.nxnx_ad_ivt_gate.nxnx_ad_store.nxnx_ad_store_seed.nxnx_ads.nxnx_adversarial_sov.nxnx_aid.nxnx_aid_federation.nxnx_aid_federation_gate.nxnx_aid_gate.nxnx_algo_registry.nxnx_algo_registry_migrate.nxnx_algo_retire.nxnx_analyst_store.nxnx_app_store.nxnx_arch_board.nxnx_archcensus.nxnx_ask_lib.nxnx_asset_catalog.nxnx_asset_catalog_gate.nxnx_asset_record.nxnx_asset_record_gate.nxnx_asset_signals.nxnx_asset_signals_gate.nxnx_asset_status_gate.nxnx_atlas_discover.nxnx_atlas_discover_gate.nxnx_atlas_gapscan.nxnx_atlas_gapscan_gate.nxnx_audio_census.nxnx_autofix_cascade_gate.nxnx_autofix_ensemble.nxnx_backlog_feeder.nxnx_battery_grade.nxnx_bench_ingest.nxnx_bills_store.nxnx_blocklist_store.nxnx_browser_census.nxnx_browser_profile_store.nxnx_build_reg_sov.nxnx_cap_gap_sov.nxnx_cap_harvest.nxnx_cap_provision_gate.nxnx_capability_no_regression.nxnx_carflip_deal.nxnx_census_load.nxnx_chart_migrate.nxnx_ciaaw_gate.nxnx_ciaaw_ingest.nxnx_ciq_analyst.nxnx_ciq_field_clinical.nxnx_ciq_field_connect.nxnx_ciq_field_games.nxnx_ciq_field_imagegen.nxnx_ciq_field_maintenance.nxnx_ciq_field_omniforge.nxnx_ciq_publish.nxnx_ciq_quadrant.nxnx_ciq_sclass_gate.nxnx_ciq_visual.nxnx_clawf_route.nxnx_clean_market.nxnx_clean_market_gate.nxnx_climbout_progress.nxnx_coach_curriculum.nxnx_coach_exceed.nxnx_coach_rubric.nxnx_coach_serve.nxnx_codata_gate.nxnx_codata_ingest.nxnx_collision_watchdog_gate.nxnx_common_tasks.nxnx_companion_gate.nxnx_conductor_recall_gate.nxnx_conductor_registry.nxnx_consol_apply.nxnx_consol_apply_gate.nxnx_consol_apply_mc.nxnx_consol_apply_mc_gate.nxnx_consolidate.nxnx_consolidate_gate.nxnx_contour_print.nxnx_contour_print_gate.nxnx_council_gate.nxnx_crm_store.nx +316 more (shown cap 100 declared)
structs
| none |
consts
| 29 | const SS_MAGIC_16777619: i64 = 16777619 |
| 30 | const SS_MAGIC_65536: i64 = 65536 |
| 31 | const SS_MAGIC_1048576: i64 = 1048576 |
| 32 | const SS_MAGIC_4096: i64 = 4096 |
| 33 | const SS_MAGIC_1024: i64 = 1024 |
| 34 | const SS_MAGIC_1039: i64 = 1039 |
| 35 | const SS_MAGIC_1040: i64 = 1040 |
| 36 | const SS_MAGIC_1071: i64 = 1071 |
| 37 | const SS_MAGIC_1072: i64 = 1072 |
| 38 | const SS_MAGIC_1279: i64 = 1279 |
| 39 | const SS_MAGIC_12352: i64 = 12352 |
| 40 | const SS_MAGIC_12543: i64 = 12543 |
| 41 | const SS_MAGIC_3040: i64 = 3040 |
| 42 | const SS_MAGIC_13312: i64 = 13312 |
| 43 | const SS_MAGIC_19903: i64 = 19903 |
| 44 | const SS_MAGIC_3400: i64 = 3400 |
| 45 | const SS_MAGIC_19968: i64 = 19968 |
| 46 | const SS_MAGIC_40959: i64 = 40959 |
| 47 | const SS_MAGIC_44032: i64 = 44032 |
| 48 | const SS_MAGIC_55215: i64 = 55215 |
| 49 | const SS_MAGIC_63744: i64 = 63744 |
| 50 | const SS_MAGIC_64255: i64 = 64255 |
| 51 | const SS_MAGIC_1469598103934665603: i64 = 1469598103934665603 |
| 52 | const SS_MAGIC_1099511628211: i64 = 1099511628211 |
| 932 | const SS_IMP_K: i64 = 512 |
| 1199 | const SS_SEGID_PTRBAND_LO: i64 = 10000000000000 |
| 1200 | const SS_SEGID_PTRBAND_HI: i64 = 140737488355328 |
| 1323 | const SS_MANIFEST_LEGACY_CAP: i64 = 256 |
| 1324 | const SS_VER_SLOTS: i64 = 260 // per-key version buffer allocation (kinds/ptrs/lens/srcs slots) |
| 1325 | const SS_VER_WINDOW: i64 = 256 // versions of ONE key a scan retains; on overflow the OLDEST slides out |
| 1380 | const SS_MF_MAGIC: i64 = 0x53534D46 |
| 1776 | const SSL_EMPTY: i64 = 0 - 1 |
| 2039 | const SSC_SLOTS: i64 = 16 |
| 2040 | const SSC_W: i64 = 4 |
| 2042 | const SSC_RETIRE: i64 = 32 |
| 2901 | const SS_CUR_SLOTS: i64 = 8 |
functions
| 54 | func ss_len(s: *u8) -> i64 { |
| 60 | func ss_cat(dst: *u8, off: i64, s: *u8) -> i64 { |
| 67 | func ss_catn(dst: *u8, off: i64, v: i64) -> i64 { |
| 80 | func ss_w32(p: *u8, off: i64, v: i64) -> i64 { |
| 88 | func ss_r32(p: *u8, off: i64) -> i64 { |
| 97 | func ss_readall(path: *u8, szout: *i64) -> *u8 {
called by 158: xp_parseag_migratemainmainmaincm_migrate+152 calls 5: sys_openat_rdsys_lseeksys_mmapsys_readsys_close |
| 122 | func ss_loadfile(path: *u8, szout: *i64, usemmap: i64) -> *u8 {
called by 7: dss_search_off_divsib_oness_load_aux2ss_open2ss_term_topmain+1 calls 2: sys_map_filess_readall |
| 132 | func ss_writefile(path: *u8, bytes: *u8, n: i64) -> i64 { |
| 150 | func ss_syncdir(prefix: *u8) -> i64 {
called by 5: ss_commitss_sync_nowss_compactss_compact_capmain calls 4: sys_mmapsys_openat_rdsys_fsyncsys_close |
| 176 | func ss_begin_cap(cap: i64) -> *i64 { |
| 184 | func ss_begin() -> *i64 { |
| 188 | func ss_add(w: *i64, kind: i64, key: *u8, val: *u8, vlen: i64) -> i64 { |
| 193 | func ss_add2(w: *i64, kind: i64, key: *u8, kl: i64, val: *u8, vlen: i64) -> i64 { |
| 210 | func ss_segname(prefix: *u8, segid: i64, tmp: i64, out: *u8) -> i64 { |
| 222 | func ss_kcmp(a: *u8, al: i64, b: *u8, bl: i64) -> i64 { |
| 241 | func ss_build_keys(w: *i64, kout: *u8) -> i64 { |
| 375 | func ss_crashwrite(prefix: *u8, w: *i64, segid: i64) -> i64 { |
| 393 | func ss_vw(p: *u8, off: i64, v: i64) -> i64 { |
| 407 | func ss_vr(p: *u8, pos: *i64) -> i64 { |
| 424 | func ss_tok_table(tbl: *u8) -> i64 { |
| 443 | func ss_fold_cp(cp: i64) -> i64 { |
| 460 | func ss_u8cp(b: *u8, sz: i64, i: i64) -> i64 { |
| 485 | func ss_fold_word_cp(cp: i64) -> i64 { |
| 496 | func ss_is_cjk(cp: i64) -> i64 { |
| 510 | func ss_tok_next2(b: *u8, sz: i64, pos: *i64, tout: *u8, tbl: *u8) -> i64 { |
| 597 | func ss_tok_next(b: *u8, sz: i64, pos: *i64, tout: *u8) -> i64 { |
| 604 | func ss_tok_has(b: *u8, sz: i64, term: *u8) -> i64 { |
| 628 | func ss_fnv(s: *u8) -> i64 { |
| 653 | func ss_build_terms(w: *i64, tblob: *u8, pblob: *u8, qblob: *u8, louts: *i64) -> i64 { |
| 937 | func ss_imp_thresh(tfs: *i64, n: i64, k: i64, outs: *i64) -> i64 { |
| 966 | func ss_build_imp(tb: *u8, tsz: i64, pb: *u8, psz: i64, qb: *u8, qsz: i64, wblob: *u8) -> i64 { |
| 1039 | func ss_auxname(prefix: *u8, segid: i64, ext: *u8, tmp: i64, out: *u8) -> i64 { |
| 1059 | func ss_write_seg(prefix: *u8, w: *i64, segid: i64) -> i64 |
| 1137 | func ss_load_aux(prefix: *u8, segname: *u8, outs: *i64) -> i64 { |
| 1140 | func ss_load_aux2(prefix: *u8, segname: *u8, outs: *i64, usemmap: i64) -> i64 { |
| 1203 | func ss_segid_ok(v: i64) -> i64 |
| 1209 | func ss_commit(prefix: *u8, w: *i64, segid: i64) -> i64 called by 284: mainmainbuild_storemainmainmain+278 calls 10: ss_segid_oksys_mmapss_catss_catnsys_writess_write_seg+4 |
| 1271 | func ss_commit_deferred(prefix: *u8, w: *i64, segid: i64) -> i64 |
| 1314 | func ss_sync_now(prefix: *u8) -> i64 |
| 1332 | func ss_manifest_file(prefix: *u8, fname: *u8, segs: *i64) -> i64 { |
| 1361 | func ss_manifest(prefix: *u8, segs: *i64) -> i64 {
called by 58: gs_grid_bodyg_segcountads_seg_nextmainei_next_segidfd_seg_next+52 calls 1: ss_manifest_file |
| 1381 | func ss_manifest_file_dyn(prefix: *u8, fname: *u8, out_segs: *i64) -> i64 { |
| 1431 | func ss_manifest_free(segs: *i64, n: i64) -> i64 { |
| 1442 | func ss_manifest_dyn(prefix: *u8, out_segs: *i64) -> i64 { |
| 1452 | func ss_next_segid(prefix: *u8) -> i64 {
called by 48: nx_app_store_putab_store_putak_commitas_seg_nextbl_put_pfxcg_seg_next+42 calls 4: sys_mmapss_catss_readallss_segid_ok |
| 1490 | func ss_manifest_file_cap(prefix: *u8, fname: *u8, segs: *i64, cap: i64) -> i64 { |
| 1518 | func ss_manifest_cap(prefix: *u8, segs: *i64, cap: i64) -> i64 { |
| 1526 | func ss_scan_cap(prefix: *u8, key: *u8, kinds: *i64, ptrs: *i64, lens: *i64, cap: i64) -> i64 { |
| 1536 | func ss_get_cap(prefix: *u8, key: *u8, ptrout: *i64, lenout: *i64, cap: i64) -> i64 {
called by 16: count_livecheck_valbr2_get_rawbr2_registerednx_mbox_fetchnx_mbox_exists+10 calls 2: sys_mmapss_scan_cap |
| 1555 | func ss_scan_seglist(prefix: *u8, segs: *i64, ns: i64, key: *u8, kinds: *i64, ptrs: *i64, lens: *i64, srcs: *i64, srcval: i64, cnt0: i64, cap: i64) -> i64 { |
| 1610 | func ss_scan(prefix: *u8, key: *u8, kinds: *i64, ptrs: *i64, lens: *i64) -> i64 { |
| 1624 | func ss_scan_all(prefix: *u8, key: *u8, kinds: *i64, ptrs: *i64, lens: *i64, srcs: *i64) -> i64 { |
| 1639 | func ss_idx_find(b: *u8, sz: i64, key: *u8, voffout: *i64, vlenout: *i64) -> i64 { |
| 1666 | func ss_idx_lookup(prefix: *u8, segname: *u8, key: *u8, voffout: *i64, vlenout: *i64) -> i64 { |
| 1702 | func ss_close(h: *i64) -> i64 {
called by 9: dss_open_maybe_cachedmw_selftestmainraci_is_accountableraci_rowraci_accountable_for+3 calls 1: sys_munmap |
| 1762 | func ss_open(prefix: *u8) -> *i64 { |
| 1778 | func ssl_pow2(n: i64) -> i64 {
called by 1: ss_open2 |
| 1784 | func ssl_total_keys(h: *i64, ns: i64) -> i64 { |
| 1796 | func ssl_key_eq(h: *i64, seg: i64, eo: i64, kb2: *u8, eo2: i64) -> i64 { |
| 1809 | func ssl_hash_entry(kb: *u8, eo: i64) -> i64 { |
| 1823 | func ssl_build(h: *i64, ns: i64, tbl_seg: *i64, tbl_eo: *i64, cap: i64) -> i64 { |
| 1860 | func ssl_lookup(h: *i64, tbl_seg: *i64, tbl_eo: *i64, cap: i64, kb: *u8, eo: i64) -> i64 { |
| 1873 | func ss_open2(prefix: *u8, usemmap: i64) -> *i64 {
called by 7: dss_open_maybe_cachedmainpb_runss_openmainmain+1 calls 12: sys_mmapss_manifest_dynss_catss_loadfiless_load_aux2ssl_total_keys+6 |
| 2050 | func ssc_init() -> i64 { |
| 2076 | func ssc_retire_handle(h: i64) -> i64 {
called by 1: ss_open_cached |
| 2089 | func ss_cache_reap() -> i64 { |
| 2105 | func ss_cache_retired() -> i64 { |
| 2109 | func ssc_streq(a: *u8, b: *u8) -> i64 {
called by 1: ss_open_cached |
| 2120 | func ssc_sig_of(prefix: *u8, sig: *i64) -> i64 { |
| 2140 | func ss_open_cached(prefix: *u8) -> *i64 { |
| 2201 | func ss_hget(h: *i64, key: *u8, ptrout: *i64, lenout: *i64) -> i64 {
called by 167: qlg_latest_hasrev_existsah_hasag_migrateag_gateag_count+161 calls 2: sys_mmapss_idx_find |
| 2225 | func ss_terms_find(tb: *u8, tsz: i64, term: *u8, outs: *i64) -> i64 { |
| 2259 | func ss_term(h: *i64, term: *u8, kpout: *i64, klout: *i64, max: i64) -> i64 { |
| 2312 | func ss_term_and(h: *i64, terms: *i64, nterms: i64, kpout: *i64, klout: *i64, max: i64) -> i64 { |
| 2407 | func ss_term_dcount(h: *i64, term: *u8) -> i64 { |
| 2428 | func ss_term_count(h: *i64, s: i64) -> i64 { |
| 2435 | func ss_term_at(h: *i64, s: i64, idx: i64, tp_out: *i64, tl_out: *i64, dc_out: *i64) -> i64 { |
| 2456 | func ss_doc_count(h: *i64) -> i64 { |
| 2485 | func ss_terms_ordinal(tb: *u8, tsz: i64, term: *u8, outs: *i64) -> i64 { |
| 2513 | func ss_q_positions(qb: *u8, qsz: i64, ord: i64, rank: i64, posout: *i64, maxpos: i64) -> i64 { |
| 2555 | func ss_term_top(prefix: *u8, h: *i64, term: *u8, kpout: *i64, klout: *i64, tfout: *i64, max: i64, satout: *i64) -> i64 {
called by 2: dss_search_off_divmain calls 7: sys_mmapss_manifest_dynss_catss_loadfiless_terms_ordinalss_r32+1 |
| 2682 | func ss_phrase(prefix: *u8, h: *i64, terms: *i64, nterms: i64, kpout: *i64, klout: *i64, max: i64, exactout: *i64) -> i64 {
called by 3: dss_search_off_divg_phrase2main calls 8: sys_mmapss_manifest_dynss_terms_ordinalss_vrss_catss_readall+2 |
| 2839 | func ss_get_idx(prefix: *u8, key: *u8, ptrout: *i64, lenout: *i64) -> i64 {
called by 24: mainmainpj_putbl_cmd_loadvb_cmd_loadvc_put+18 calls 6: sys_mmapss_manifest_dynss_idx_lookupss_getss_catss_readall |
| 2874 | func ss_get(prefix: *u8, key: *u8, ptrout: *i64, lenout: *i64) -> i64 { |
| 2903 | func ss_cur_open(prefix: *u8) -> *i64 |
| 2917 | func ss_cur_next(prefix: *u8, st: *i64, |
| 2986 | func ss_compact(prefix: *u8, segid: i64) -> i64 { |
| 3113 | func ss_compact_cap(prefix: *u8, segid: i64, cap: i64) -> i64 { |