code wiki / _hdl_build / nx_hub_gw_decide.nx

nx_hub_gw_decide.nx

buildroot/runtime/_hdl_build/nx_hub_gw_decide.nx

6036 B114 linesdepth 5pulls 6 transitivereach 6 importersview sourcekind librarytopic hub
docsdependenciesstructsconstsfunctions

about

nx_hub_gw_decide.nx -- the HUB gateway's PURE request->decision handler (bytes in, HTTP status out). 2026-07-29 seq1232 (P2 safe-subset): per-call scratch -> lazy statics (no-munmap page leak class).

dependencies 3 imports · 4 importers

nx_syscalls.nx nx_site_lock_lib.nx nx_maturity_registry.nx nx_hub_gw_decide.nx nx_hub_gw.nx nx_hub_gw_gate.nx nx_project_serve.nx nx_torrent_gw.nx

imports: nx_syscalls.nxnx_site_lock_lib.nxnx_maturity_registry.nx

imported by: nx_hub_gw.nxnx_hub_gw_gate.nxnx_project_serve.nxnx_torrent_gw.nx

structs

none

consts

24const K_MAGIC_1024: i64 = 1024

functions

27func hgw_path(req: *u8, n: i64, out: *u8, cap: i64) -> i64
41func hgw_hdr_val(req: *u8, n: i64, name: *u8, namelen: i64, out: *u8, cap: i64) -> i64
68func hgw_resolve_handle(sessions: *u8, slen: i64, token: *u8, tlen: i64, out: *u8, cap: i64) -> i64
95func hgw_decide(req: *u8, n: i64, registry: *u8, reglen: i64, roles: *u8, rolelen: i64,