code wiki / (root) / nx_model_lane.nx

nx_model_lane.nx

buildroot/runtime/nx_model_lane.nx

2598 B73 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic model
docsdependenciesstructsconstsfunctions

about

nx_model_lane.nx -- CLI for the sovereign model-lane lease (core = nx_model_lane_core). usage: nx_model_lane claim <holder> <est_mb> <pid> [ttl_sec] [leasepath] nx_model_lane free <holder> [leasepath] nx_model_lane status [leasepath] pid = the WORKLOAD pid (shell scripts pass $$). Default lease = knowledge/status/ model_lane.lease, default ttl 14400s. Exit code = rc map in the core header. LAW (banked): every model-scale launch on this worker claims the lane FIRST; the forge scripts (flp_t2_run.sh / flp_smoke_05b.sh) are the first wired consumers. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_model_lane_core.nx nx_model_lane.nx

imports: nx_model_lane_core.nx

imported by: nobody (leaf or entry point)

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

main std_putln std_puts std_slen sys_write std_streq std_atoi ml_claim ml_meminfo_avail_mb sys_mmap sys_openat_rd sys_read sys_close std_slen ↻ std_putln ↻ std_puts ↻ std_pdec sys_mmap ↻ std_itoa sys_mmap ↻ sys_write ↻ ml_try_create sys_mmap ↻ std_itoa ↻ sys_now_us sys_mmap ↻ sys_clock_gettime_mono sys_write ↻ sys_close ↻ ml_unlink sys_mmap ↻ sys_openat_rd ↻ sys_read ↻ sys_close ↻ ml_parse ml_pid_alive sys_mmap ↻ std_itoa ↻ sys_openat_rd ↻ sys_close ↻

structs

none

consts

12const K_MAGIC_14400: i64 = 14400

functions

14func main(argc: i64, argv: *i64) -> i64