code wiki / (root) / nx_clock_reserved_fault_native_v2_ar.nx

nx_clock_reserved_fault_native_v2_ar.nx

buildroot/runtime/nx_clock_reserved_fault_native_v2_ar.nx

24048 B439 linesdepth 6pulls 20 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_clock_sched_reserved_fault_v2_a nx_gate_verdict.nx nx_tool_run.nx nx_build_canon_input_lib.nx nx_rank_refresh_lib.nx nx_clock_reserved_fault_native

imports: nx_clock_sched_reserved_fault_v2_ar.nxnx_gate_verdict.nxnx_tool_run.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 gv_catn sys_mmap ↻ sys_munmap ↻ gv_cat crg_subject rig_guard ↻ rig_num ↻ gv_cat ↻ clk_slot

structs

none

consts

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

functions

29func rig_len(p: *u8) -> i64 { var n: i64 = 0; while p[n] != (0 as u8) { n = n + 1 } return n }
30func rig_eq(a: *u8, b: *u8) -> i64
36func rig_num(p: *u8) -> i64
called by 3: crg_childcrg_subjectmain calls 1: rig_len
50func rig_join(root: *u8, rel: *u8) -> *u8
57func rig_exists(path: *u8) -> i64
64func rig_parent(path: *u8) -> i64
called by 1: main calls 2: rig_lenbci_relative_path
85func rig_write(path: *u8, buf: *u8, n: i64) -> i64
100func rig_file(root: *u8, rel: *u8, val: *u8) -> i64 { return rig_write(rig_join(root,rel),val,rig_len(val)) }
101func rig_dir(root: *u8, rel: *u8) -> i64
called by 1: crg_setup calls 1: rig_join
113func rig_guard() -> i64 { return rrf_file_equal("fixture-root.guard" as *u8,RIG_GUARD,rig_len(RIG_GUARD)) }
115func crg_event(role: i64, phase: i64) -> i64
called by 2: crg_childcrg_subject calls 2: gv_catngv_cat
129func crg_child(argc: i64, argv: *i64) -> i64
called by 1: main calls 3: rig_guardrig_numcrg_event
141func crg_command(dst: *u8, role: i64, duration: *u8) -> i64
called by 1: crg_subject calls 2: gv_catgv_catn
147func crg_subject(argc: i64, argv: *i64) -> i64
204func crg_setup(root: *u8, self: *u8) -> i64
225func crg_analyze(root: *u8, mode: *u8, period: i64, ctr: *i64) -> i64
304func crg_negative_mode(mode: *u8) -> i64
called by 2: crg_subjectmain calls 1: rig_eq
310func crg_number_file(path: *u8) -> i64
315func crg_negative_analyze(root: *u8, mode: *u8, ctr: *i64) -> i64
402func main(argc: i64, argv: *i64) -> i64