code wiki / _hdl_build / _queue_load_gate_authored.nx

_queue_load_gate_authored.nx

buildroot/runtime/_hdl_build/_queue_load_gate_authored.nx

6365 B166 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic queue
docsdependenciesstructsconstsfunctions

about

_queue_load_gate_authored.nx -- gate for IM-Q1 (the queue on the sovereign store). Scratch store prefix + scratch queue through the REAL organ elf: run1: ingest (queue rows + sponsor surfaces) -> store populated run2: NOTHING changed -> added=0 (idempotency BY CONSTRUCTION) run3: one row's status flipped in the scratch queue -> added=1 (exactly the changed row becomes a NEW VERSION under the same aq: key) and the store's LATEST value for that key reflects the flip -- the time-travel property the bare TSV can never have. Markers: QLG-*; final QLGATE row -> knowledge/status/infomgmt_store.log license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_seg_store.nx _queue_load_gate_authored.nx

imports: nx_syscalls.nxnx_seg_store.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 qlg_p sys_write ss_cat ss_catn sys_mmap ↻ sys_now_us sys_mmap ↻ sys_clock_gettime_mono qlg_seed sys_openat_wr qlg_f sys_write ↻ sys_close sys_exit qlg_run sys_fork sys_openat_wr ↻ sys_dup3 sys_mmap ↻ sys_execve sys_exit ↻ sys_wait4 qlg_has sys_mmap ↻ sys_openat_rd sys_read sys_close ↻ qlg_chk qlg_p ↻ qlg_latest_has ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn sys_mmap ↻ ss_cat ↻ ss_readall

structs

none

consts

none

functions

15func qlg_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 2: qlg_chkmain calls 1: sys_write
16func qlg_f(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
called by 2: qlg_seedmain calls 1: sys_write
17func qlg_n(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m; sys_write(fd,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(fd,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
19func qlg_chk(label: *u8, ok: i64, bad: *i64) -> i64
called by 1: main calls 1: qlg_p
26func qlg_seed(qp: *u8, qb_done: i64) -> i64
called by 1: main calls 3: sys_openat_wrqlg_fsys_close
44func qlg_run(prefix: *u8, qp: *u8, outpath: *u8) -> i64
64func qlg_has(path: *u8, pat: *u8) -> i64
88func qlg_latest_has(prefix: *u8, key: *u8, pat: *u8) -> i64
called by 1: main calls 3: ss_opensys_mmapss_hget
110func main() -> i64