code wiki / _hdl_build / nx_gate_loop_register.nx

nx_gate_loop_register.nx

buildroot/runtime/_hdl_build/nx_gate_loop_register.nx

5745 B124 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind tooltopic gate
docsdependenciesstructsconstsfunctions

about

nx_gate_loop_register.nx -- GOVERNED registration of the gate loop daemon (GAME arc G5). ENGINEER verdict, all mechanical: (a) pidfile names a LIVE pid (/proc/<pid>/comm opens); (b) a second start REFUSES (singleton; exit 3) -- two loops would race the gate's shared /tmp artifacts (observed corrupting verdicts); (c) at least one GATELOOP beat line exists in the loop log. Also flags the __syscall translation-table gap found during the build: rv64 getpid (172) is NOT translated -> x86 received 172=iopl -> -ENOSYS. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_cap_register.nx nx_pm_review_log.nx nx_syscalls.nx nx_gate_loop_register.nx

imports: nx_cap_register.nxnx_pm_review_log.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main glr_read_pidfile sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close glr_pid_alive sys_mmap ↻ glr_cat glr_cat_n sys_mmap ↻ sys_openat_rd ↻ sys_close ↻ cr_w sys_write cr_wn sys_mmap ↻ sys_write ↻ glr_run0 sys_fork sys_openat_wr sys_dup3 sys_mmap ↻ sys_execve sys_exit sys_wait4 sys_mmap ↻ sys_read_file ↻ ig_engineer sys_openat_rd ↻ ig_documented sys_close ↻ ig_council ig_decision pm_open sys_openat_append pm_deliverable

structs

none

consts

14const GLR_LAYER: i64 = 4
15const GLR_STATUS: i64 = 2
16const GLR_IDX: i64 = 218
17const GLR_NLAYERS: i64 = 6

functions

19func glr_run0(path: *u8) -> i64
35func glr_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { dst[off+i] = s[i]; i = i + 1 } return off + i }
called by 1: glr_pid_alive
36func glr_cat_n(dst: *u8, off: i64, v: i64) -> i64
called by 1: glr_pid_alive calls 1: sys_mmap
49func glr_read_pidfile() -> i64
called by 1: main calls 2: sys_mmapsys_read_file
66func glr_pid_alive(pid: i64) -> i64
80func main() -> i64