code wiki / _hdl_build / nx_autorun_poke.nx
nx_autorun_poke.nx
buildroot/runtime/_hdl_build/nx_autorun_poke.nx
about
nx_autorun_poke.nx -- the EVENT trigger for nx_autorun_daemon (event-driven mode).
Writes ONE byte to the daemon's FIFO -> wakes it for exactly one re-prove beat.
Non-blocking: if no daemon is listening (no reader on the FIFO) the O_NONBLOCK
open returns ENXIO and the poke reports it instead of hanging. Any producer --
a git post-commit hook, nx_attempt_loop after authoring, or a human -- calls this:
it is the ecosystem's "something changed, re-prove the rungs" signal, replacing
the old 6h clock. Sovereign: syscalls only, no .sh. license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 9 | const O_MAGIC_4096: i64 = 4096 |
| 10 | const O_MAGIC_4080: i64 = 4080 |
| 11 | const O_WRONLY_NB: i64 = 0x801 // O_WRONLY (1) | O_NONBLOCK (0x800) |
functions
| 13 | func pk_p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 15 | func pk_read_all(path: *u8, buf: *u8, cap: i64) -> i64 |
| 25 | func pk_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: pk_fifo_path |
| 28 | func pk_fifo_path(out: *u8) -> i64 |
| 49 | func main() -> i64 |