code wiki / (root) / nx_clock_driver_gate_ar.nx

nx_clock_driver_gate_ar.nx

buildroot/runtime/nx_clock_driver_gate_ar.nx

22000 B372 linesdepth 6pulls 10 transitivereach 0 importersview sourcekind tooltopic clock
docsdependenciesstructsconstsfunctions

about

Local-only V2 real-process scheduler harness. Positive closure uses production seams; ownership selectors require the explicitly instrumented test-only scheduler closure.

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_clock_driver_toolrun_ar.nx nx_build_canon_input_lib.nx nx_rank_refresh_lib.nx nx_clock_driver_gate_ar.nx

imports: nx_syscalls.nxnx_gate_verdict.nxnx_clock_driver_toolrun_ar.nxnx_build_canon_input_lib.nxnx_rank_refresh_lib.nx

imported by: nobody (leaf or entry point)

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

main rig_eq crg_child rig_guard rrf_file_equal sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable nxa_dump_sizes sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close sys_free_file sys_munmap ↻ rig_len rig_num rig_len ↻ crg_event sys_openat_append sys_flock sys_close ↻ sys_mmap ↻ gv_catn sys_mmap ↻ sys_munmap ↻ gv_cat sys_now_ms

structs

none

consts

8const MODE_0755: i64 = 493
9const RIG_PATH: i64 = 4096
10const RIG_PTR: i64 = 8
11const RIG_FILE_MODE: i64 = 384
12const RIG_DIR_MODE: i64 = 448
13const RIG_EINVAL: i64 = 0 - 22
14const RIG_SETUP: i64 = 90
15const RIG_GUARD: *u8 = "NISHI-CLOCK-RESERVE-FIXTURE\n"
16const CRG_EXCLUSIVE: i64 = 2
17const CRG_UNLOCK: i64 = 8
18const CRG_ROLES: i64 = 4
19const CRG_SLOW: i64 = 0
20const CRG_ESSENTIAL: i64 = 1
21const CRG_ORDINARY: i64 = 2
22const CRG_WINDOW: i64 = 3
23const CRG_START: i64 = 1
24const CRG_END: i64 = 0
25const CRG_MS_PER_SEC: i64 = 1000
26const CRG_MIN_COMPLETIONS: i64 = 2
27const CRG_FAULT_ROLE: i64 = 4
28const CRG_FAULT_POINT: i64 = 2
29const CRG_TEST_ECHILD: i64 = 0 - 10

functions

30func rig_len(p: *u8) -> i64 { var n: i64 = 0; while p[n] != (0 as u8) { n = n + 1 } return n }
31func rig_eq(a: *u8, b: *u8) -> i64
called by 1: main
37func rig_num(p: *u8) -> i64
called by 2: crg_childmain calls 1: rig_len
51func rig_join(root: *u8, rel: *u8) -> *u8
58func rig_exists(path: *u8) -> i64
called by 1: main calls 2: sys_openat_rdsys_close
65func rig_parent(path: *u8) -> i64
86func rig_write(path: *u8, buf: *u8, n: i64) -> i64
101func rig_file(root: *u8, rel: *u8, val: *u8) -> i64 { return rig_write(rig_join(root,rel),val,rig_len(val)) }
102func rig_dir(root: *u8, rel: *u8) -> i64
called by 2: crg_setupmain calls 2: rig_joinsys_mkdir
114func rig_guard() -> i64 { return rrf_file_equal("fixture-root.guard" as *u8,RIG_GUARD,rig_len(RIG_GUARD)) }
called by 1: crg_child calls 2: rrf_file_equalrig_len
116func crg_event(role: i64, phase: i64) -> i64
130func crg_child(argc: i64, argv: *i64) -> i64
142func crg_command(dst: *u8, role: i64, duration: *u8) -> i64
calls 2: gv_catgv_catn
147func crg_setup(root: *u8, self: *u8) -> i64
168func dfg_analyze(root: *u8, fatal: i64, ctr: *i64) -> i64
227func dfg_size(p: *u8) -> i64
called by 1: main calls 2: sys_mmapsys_read_file
231func dfg_epoch(p: *u8,minimum: i64,maximum: i64) -> i64
called by 1: main calls 2: sys_mmapsys_read_file
247func dfg_contains(p: *u8,needle: *u8) -> i64
called by 1: main calls 3: sys_mmapsys_read_filerig_len
254func dfg_row(buf: *u8,o: i64,name: *u8,period: i64,due: i64,role: i64,duration: *u8) -> i64
called by 1: main calls 2: gv_catgv_catn
261func main(argc: i64,argv: *i64) -> i64