code wiki / _hdl_build / nx_synth_serve_daemon.nx

nx_synth_serve_daemon.nx

buildroot/runtime/_hdl_build/nx_synth_serve_daemon.nx

2389 B43 linesdepth 8pulls 19 transitivereach 0 importersview sourcekind servicetopic synth
docsdependenciesstructsconstsfunctions

about

nx_synth_serve_daemon.nx -- deployable Synth Studio daemon: argv[1]=listen_port; accept-fork loop calling sv_serve_conn (nx_synth_serve). Runs on loopback behind the site proxy (/synth -> this port). Forks per connection so the heavy per-request render mmaps are reclaimed by the kernel on child exit. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_synth_serve.nx nx_syscalls.nx nx_synth_serve_daemon.nx

imports: nx_synth_serve.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sys_write sys_exit sd_atoi 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_socket sys_setsockopt sys_bind sys_listen sys_accept sys_set_socket_timeout sys_mmap ↻ sys_setsockopt ↻ sys_munmap sys_fork sys_close sv_serve_conn sys_set_socket_timeout ↻ sys_mmap ↻ sv_read_full sys_read sv_find_seq sv_hdr_int sv_find_seq ↻ sv_find_seq ↻ sv_reqpath

structs

none

consts

6const K_MAGIC_1000000: i64 = 1000000

functions

8func sd_atoi(s: *u8) -> i64 { var v: i64=0; var i: i64=0; while s[i]!=(0 as u8){ let c: i64=s[i] as i64; if c<48{return v} if c>57{return v} v=v*10+(c-48); i=i+1 } return v }
called by 1: main
10func main(argc: i64, argv: *i64) -> i64