nx_galx_models.nx
buildroot/runtime/nx_galx_models.nx
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
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
structs
| none |
consts
| 8 | const K_MAGIC_1024: i64 = 1024 |
| 10 | const MAXM: i64 = 40000 // max distinct models |
| 11 | const NAMEBUF: i64 = 4194304 // bytes for unique model names |
functions
| 13 | func 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 } |
| 18 | func mo_n(v: i64) -> i64 { nxi_out(v); return 0 } |
| 20 | func mo_eq(nb: *u8, off: i64, len: i64, buf: *u8, ps: i64, plen: i64) -> i64 called by 1: main |
| 26 | func mo_sift(idx: *i64, key: *i64, root0: i64, n: i64) -> i64 called by 1: mo_heapsort |
| 31 | func mo_heapsort(idx: *i64, key: *i64, n: i64) -> i64 |
| 40 | func main() -> i64 |