code wiki / _hdl_build / nx_galx_durbin.nx

nx_galx_durbin.nx

buildroot/runtime/_hdl_build/nx_galx_durbin.nx

1624 B28 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic galx
docsdependenciesstructsconstsfunctions

about

nx_galx_durbin.nx -- standalone refresher: (re)build galx_dur.bin from galx_dur.raw so the gallery's /vid/<id>/dur seekbar lookup is O(1) (one 8-byte seek) instead of a 16 MB PCR re-scan. Run after the durindex appends new durations -- NO gallery restart needed (the gallery reads galx_dur.bin fresh on each /dur, exactly like nx_galx_vidoff refreshes galx_vid_off.bin). Idempotent; safe to run while the durindex is still writing (append-only -> earlier ids stay correct). license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_galx_durbin_lib.nx nx_galx_durbin.nx

imports: nx_syscalls.nxnx_galx_durbin_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_openat_rd sys_lseek sys_close db_build sys_openat_rd ↻ sys_lseek ↻ sys_close ↻ sys_mmap sys_read db_wb64 db_qint sys_openat_wr sys_write rp sys_write ↻ rn sys_mmap ↻ sys_write ↻

structs

none

consts

none

functions

9func rp(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
10func rn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
19func main(argc: i64, argv: *i64) -> i64