code wiki / (root) / nx_galx_models.nx

nx_galx_models.nx

buildroot/runtime/nx_galx_models.nx

5521 B112 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic galx
docsdependenciesstructsconstsfunctions

about

nx_galx_models.nx -- SOVEREIGN "who is who" index for recordings. The cam archive is foldered by person (/mnt/nas_logging/<model>/<file>.ts), so each recording's parent-directory name IS the identity. This scans knowledge/status/galx_vid_paths.tsv, extracts every recording's model (parent folder), counts per model, and writes knowledge/status/galx_models.tsv = "<model>\t<count>" sorted by count DESC. The daemon serves this as /api/models and filters recordings by &model=<name>. NishiLang only. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_galx_models.nx

imports: nx_syscalls.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close mo_p sys_write sys_exit mo_eq mo_heapsort mo_sift sys_openat_wr sys_write ↻ sys_close ↻ mo_n nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap

structs

none

consts

8const K_MAGIC_1024: i64 = 1024
10const MAXM: i64 = 40000 // max distinct models
11const NAMEBUF: i64 = 4194304 // bytes for unique model names

functions

13func mo_p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
18func mo_n(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
20func mo_eq(nb: *u8, off: i64, len: i64, buf: *u8, ps: i64, plen: i64) -> i64
called by 1: main
26func mo_sift(idx: *i64, key: *i64, root0: i64, n: i64) -> i64
called by 1: mo_heapsort
31func mo_heapsort(idx: *i64, key: *i64, n: i64) -> i64
called by 1: main calls 1: mo_sift
40func main() -> i64