code wiki / _hdl_build / nx_pub_daemon.nx

nx_pub_daemon.nx

buildroot/runtime/_hdl_build/nx_pub_daemon.nx

3775 B49 linesdepth 6pulls 12 transitivereach 0 importersview sourcekind servicetopic pub
docsdependenciesstructsconstsfunctions

about

nx_pub_daemon.nx -- Monitors and publishes knowledge streams with event-driven processing, heartbeat checks, and graceful shutdown.

dependencies 4 imports · 0 importers

nx_gate_gn.nx nx_gate_base.nx nx_syscalls.nx nx_publisher.nx nx_pub_daemon.nx

imports: nx_gate_gn.nxnx_gate_base.nxnx_syscalls.nxnx_publisher.nx

imported by: nobody (leaf or entry point)

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

main gw sys_write pub_init streq touch sys_openat_wr sys_write ↻ sys_close pub_daemon_hb_age 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 sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close ↻ pub_atoi sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real gn pub_daemon_serve pub_daemon_watch_init pub_daemon_should_stop

structs

none

consts

13const K_MAGIC_1000000000: i64 = 1000000000
14const K_MAGIC_2000: i64 = 2000

functions

16func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
18func streq(a: *u8, b: *u8) -> i64 { var i: i64=0; while a[i]!=(0 as u8){ if a[i]!=b[i]{return 0} i=i+1 } if b[i]!=(0 as u8){return 0} return 1 }
19func touch(path: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x1a4); if fd<0 { return 0 } sys_write(fd, "1" as *u8, 1); sys_close(fd); return 1 }
21func main(argc: i64, argv: *i64) -> i64