code wiki / _hdl_build / nx_mmap_shared_gate.nx

nx_mmap_shared_gate.nx

buildroot/runtime/_hdl_build/nx_mmap_shared_gate.nx

2152 B46 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic mmap
docsdependenciesstructsconstsfunctions

about

nx_mmap_shared_gate.nx -- proves sys_mmap_shared gives ONE region across fork() (the foundation for the fork-per-connection video relay). Positive: a child's write into a shared region is visible to the parent. Neg-control: a private (sys_mmap) region is NOT shared (parent keeps its own copy). No false-green. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_mmap_shared_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main g_puts sys_write 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_mmap_shared sys_fork sys_exit ↻ sys_wait4 g_check g_puts ↻ gv_ctr sys_mmap ↻ gv_verdict gv_note_bare_rate gv_bare_rate gv_at gv_obj_has_n gv_at ↻ gv_puts sys_write ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_puts ↻ gv_num ↻

structs

none

consts

none

functions

9func g_puts(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_checkmain calls 1: sys_write
10func g_check(name: *u8, cond: i64) -> i64
called by 1: main calls 1: g_puts
15func main() -> i64