nx_stage_path.nx
buildroot/runtime/nx_stage_path.nx
about
dependencies 3 imports · 40 importers
diagram shows first 10 each side; +0 more imports, +30 more importers in the complete lists below.
imports: nx_syscalls.nxnx_estate_path.nxnx_gate_verdict.nx
imported by: nx_autofix_gate.nxnx_autofix_lib.nxnx_autofix_lib_t138.nxnx_block_quant_h2h_gate.nxnx_codegen_bench_gate.nxnx_coder_swap_gate.nxnx_gpu_serve_gate.nxnx_hybrid_moe_cascade_gate.nxnx_nofloat_arch_moe_gate.nxnx_nofloat_moe_real_gate.nxnx_nofloat_olmoe_forward_gate.nxnx_nofloat_olmoe_gate.nxnx_nofloat_prefill_gate.nxnx_nofloat_prefix_cache_gate.nxnx_nofloat_propose_chat_gate.nxnx_nofloat_propose_solve_gate.nxnx_nofloat_propose_verify_gate.nxnx_nofloat_q6k_gate.nxnx_nofloat_qwen_config_gate.nxnx_nofloat_qwen_decode_gate.nxnx_nofloat_qwen_encode_gate.nxnx_nofloat_qwen_encode_prep_gate.nxnx_nofloat_qwen_fastgen_gate.nxnx_nofloat_qwen_fastgen_i32_gate.nxnx_nofloat_qwen_fastgen_i8_gate.nxnx_nofloat_qwen_fidelity_gate.nxnx_nofloat_qwen_forward_gate.nxnx_nofloat_qwen_gen_gate.nxnx_nofloat_qwen_kvgen_gate.nxnx_nofloat_qwen_stack_gate.nxnx_nofloat_qwen_text_gate.nxnx_nofloat_qwen_wload_gate.nxnx_nofloat_serve_gate.nxnx_nofloat_weightconv_gate.nxnx_q4k_fused_fidelity_gate.nxnx_realweight_quant_gate.nxnx_rigor_envelope_gate.nxnx_safetensors_gate.nxnx_swebench_local_gate.nxnx_zero_claude_ledger_gate.nx
structs
| none |
consts
| 36 | const SP_PATH_MAX: i64 = 4096 |
| 39 | const SP_ENVIRON_BYTES: i64 = 65536 |
| 40 | const SP_DEFAULT_ROOT: *u8 = "/home/elderwesto/nx_stage" |
| 41 | const SP_CONF: *u8 = "knowledge/stage.conf" |
| 42 | const SP_CONF_KEY: *u8 = "stage_root=" |
| 43 | const SP_ENV_KEY: *u8 = "NX_STAGE=" |
| 47 | const SP_MODELS_DEFAULT_ROOT: *u8 = "/mnt/c/Users/elder/elder-ai-platform/models/unified" |
| 48 | const SP_MODELS_CONF_KEY: *u8 = "models_root=" |
| 49 | const SP_MODELS_ENV_KEY: *u8 = "NX_MODELS=" |
| 50 | const SP_SRC_ENV: i64 = 1 |
| 51 | const SP_SRC_CONF: i64 = 2 |
| 52 | const SP_SRC_DEFAULT: i64 = 3 |
| 213 | const SP_ENGINE_MODEL_ENV_KEY: *u8 = "NX_ENGINE_MODEL=" |
| 214 | const SP_ENGINE_MODEL_CONF_KEY: *u8 = "engine_model=" |
| 215 | const SP_SRC_NONE: i64 = 0 |
| 272 | const SP_RIGOR_CONF: *u8 = "knowledge/rigor.conf" |
| 273 | const SP_RIGOR_KEY_Z: *u8 = "z_micro=" |
| 274 | const SP_RIGOR_KEY_B: *u8 = "boot_reps=" |
| 275 | const SP_RIGOR_KEY_SEED: *u8 = "boot_seed=" |
| 276 | const SP_RIGOR_KEY_WIDTH: *u8 = "width_target_permil=" |
functions
| 54 | func sp_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 55 | func sp_cat(d: *u8, o: i64, s: *u8) -> i64 { var i: i64 = 0; var p: i64 = o; while s[i] != (0 as u8) { d[p] = s[i]; p = p + 1; i = i + 1 } return p } |
| 57 | func sp_match(buf: *u8, at: i64, n: i64, lit: *u8) -> i64 |
| 63 | func sp_take_value(buf: *u8, from: i64, n: i64, out: *u8) -> i64 |
| 81 | func sp_env(key: *u8, out: *u8) -> i64 called by 2: sp_resolve_rootsp_engine_model calls 7: sys_openat_rdsys_mmapsys_readsys_closesp_matchsp_take_value+1 |
| 98 | func sp_conf(key: *u8, out: *u8) -> i64 called by 2: sp_resolve_rootsp_engine_model calls 7: ep_open_rdsys_mmapsys_readsys_closesp_matchsp_take_value+1 |
| 115 | func sp_resolve_root(envkey: *u8, confkey: *u8, dflt: *u8, out: *u8) -> i64 |
| 123 | func sp_root(out: *u8) -> i64 { return sp_resolve_root(SP_ENV_KEY, SP_CONF_KEY, SP_DEFAULT_ROOT, out) } |
| 125 | func sp_models_root(out: *u8) -> i64 { return sp_resolve_root(SP_MODELS_ENV_KEY, SP_MODELS_CONF_KEY, SP_MODELS_DEFAULT_ROOT, out) } |
| 127 | func sp_join_name(name: *u8, out: *u8) -> *u8 |
| 135 | func sp_path(name: *u8, out: *u8) -> *u8 { sp_root(out); return sp_join_name(name, out) } |
| 137 | func sp_models_path(rel: *u8, out: *u8) -> *u8 { sp_models_root(out); return sp_join_name(rel, out) } |
| 139 | func sp_present(path: *u8) -> i64 |
| 146 | func sp_src_name(src: i64) -> *u8 called by 1: sp_skip_because |
| 155 | func sp_skip_because(gate: *u8, path: *u8, src: i64, envkey: *u8, confkey: *u8) -> i64 called by 2: sp_skip_unlesssp_models_skip_unless calls 7: sys_mmapsp_catsp_src_namegv_ctrgv_needsys_exit+1 |
| 172 | func sp_skip_unless(gate: *u8, path: *u8) -> i64 |
| 179 | func sp_models_skip_unless(gate: *u8, path: *u8) -> i64 called by 6: mainmainmainmainmainsp_models_guarded calls 4: sp_presentsys_mmapsp_models_rootsp_skip_because |
| 188 | func sp_guarded(gate: *u8, name: *u8) -> *u8 |
| 193 | func sp_models_guarded(gate: *u8, rel: *u8) -> *u8 |
| 218 | func sp_engine_model(out: *u8) -> i64 |
| 238 | func sp_engine_src_name(src: i64) -> *u8 |
| 245 | func sp_engine_model_skip(gate: *u8, path: *u8, src: i64) -> i64 |
| 279 | func sp_conf_in(file: *u8, key: *u8, out: *u8) -> i64 called by 3: afl_conf_intafl_conf_intsp_rigor_int calls 8: ep_open_rdsys_mmapsys_readsys_closesp_matchsp_take_value+2 |
| 297 | func sp_atoi(s: *u8) -> i64 |
| 313 | func sp_rigor_int(key: *u8, dflt: i64) -> i64 |
| 321 | func sp_rigor_present() -> i64 |
| 329 | func sp_rigor_params(p: *i64) -> i64 |