code wiki / _hdl_build / nx_pm_gate.nx

nx_pm_gate.nx

buildroot/runtime/_hdl_build/nx_pm_gate.nx

4204 B59 linesdepth 6pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic pm
docsdependenciesstructsconstsfunctions

about

nx_pm_gate.nx -- SOVEREIGN gate for the PM coordinator. T1-T4 RACI ROUTING TABLE: accountable(fix)=doctor, (optimize)=engineer, (publish)=publisher, (coordinate)=pm T5 DISPATCH: pm route optimize -> the work lands in the ENGINEER's queue (right role's intake, no competition) T6 NEG: accountable(bogus-activity) -> not found (no false routing) license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_pm.nx nx_role_queue.nx nx_role_store.nx nx_pm_gate.nx

imports: nx_syscalls.nxnx_pm.nxnx_role_queue.nxnx_role_store.nx

imported by: nobody (leaf or entry point)

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

main pg_role_is 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 ↻ pm_accountable raci_accountable_for ss_open ss_open2 ss_open3 sys_mmap ↻ rsv_key ss_hget sys_mmap ↻ ss_len ss_hlocate ssl_hash_raw ss_r32 ss_r32 ↻ ss_idx_find ss_r32 ↻ ss_len ↻ ss_kcmp rsv_field rsv_streq rsv_has ss_close ss_close_seg

structs

none

consts

none

functions

11func pg_uw(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 1: main calls 1: sys_write
12func pg_role_is(activity: *u8, expect: *u8) -> i64 { let r: *u8=sys_mmap(64); if pm_accountable(activity, r)==0 {return 0} return rq_streq(r, expect) }
called by 1: main calls 3: sys_mmappm_accountablerq_streq
13func pg_write(path: *u8, s: *u8, len: i64) -> i64 { let fd: i64=sys_openat_wr(path, 0x1a4); if fd<0 {return 0-1} sys_write(fd,s,len); sys_close(fd); return 0 }
14func pg_contains(path: *u8, needle: *u8) -> i64
calls 1: sys_mmap
21func pg_store_contains(ch: *u8, needle: *u8) -> i64
called by 1: main calls 3: rs_countsys_mmaprs_get_seq
33func main(argc: i64, argv: *i64) -> i64