code wiki / _hdl_build / nx_boot_revive_m6_gate.nx

nx_boot_revive_m6_gate.nx

buildroot/runtime/_hdl_build/nx_boot_revive_m6_gate.nx

15045 B293 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic boot
docsdependenciesstructsconstsfunctions

dependencies 5 imports · 0 importers

nx_gate_gn.nx nx_syscalls.nx nx_ws_ledger.nx nx_heartbeat_monitor.nx nx_boot_revive.nx nx_boot_revive_m6_gate.nx

imports: nx_gate_gn.nxnx_syscalls.nxnx_ws_ledger.nxnx_heartbeat_monitor.nxnx_boot_revive.nx

imported by: nobody (leaf or entry point)

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

main sys_now_realtime_sec sys_mmap sys_clock_gettime_real g_uniq sys_now_us sys_mmap ↻ sys_clock_gettime_mono sys_mmap ↻ fa_cat fa_catn sys_mmap ↻ sys_close sys_mmap ↻ fa_cat ↻ fa_catn ↻ g_pidpath fa_cat ↻ fa_catn ↻ g_fresh sys_openat_wr sys_close ↻ ledger_append sys_now_realtime_sec ↻ sys_mmap ↻ wsl_build fa_cat ↻ fa_catn ↻ fa_append sys_mmap ↻ sys_openat_append sys_flock fa_write_all sys_write sys_close ↻ hb_beat_at sys_mmap ↻ hbm_build fa_cat ↻ fa_catn ↻

structs

none

consts

38const G_RECCAP: i64 = 512 // bounded gate-log record size
39const G_NOW: i64 = 1000 // injected wall-clock for the test (deterministic)
40const G_THR: i64 = 60 // injected liveness threshold
41const G_DONE: i64 = 3 // ledger DONE state code (== BR_WS_DONE)

functions

44func gp(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: g_logrowmain calls 1: sys_write
47func g_fresh(path: *u8) -> i64
called by 1: main calls 2: sys_openat_wrsys_close
54func g_pidpath(base: *u8, pid: i64, out: *u8) -> i64
called by 1: main calls 2: fa_catfa_catn
67func g_uniq() -> i64
85func g_contains(hay: *u8, n: i64, pat: *u8) -> i64
called by 1: main
99func g_readall(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
111func g_logrow(scratch: *u8, durable: *u8, label: *u8, got: i64, want: *u8, pass: i64) -> i64
130func main() -> i64