code wiki / _hdl_build / nx_apistack_configpush.nx

nx_apistack_configpush.nx

buildroot/runtime/_hdl_build/nx_apistack_configpush.nx

1786 B31 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic apistack
docsdependenciesstructsconstsfunctions

about

nx_apistack_configpush.nx -- CAP-API-CONFIGPUSH: declarative config push + hot-reload over /api. A caller POSTs new config; cp_apply writes it and returns its GENERATION (FNV of the bytes). A daemon compares cp_current_gen against its last-seen gen to detect a change and hot-reload -- config-as-data, reproducible, no restart, git-less (the sovereign exceed over cloud config services). Same content -> same gen (idempotent reload). license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_apistack_configpush.nx nx_apistack_configpush_gate.nx

imports: nx_syscalls.nx

imported by: nx_apistack_configpush_gate.nx

structs

none

consts

6const K_MAGIC_3750763034362895579: i64 = 3750763034362895579
7const K_MAGIC_1099511628211: i64 = 1099511628211
8const K_MAGIC_262144: i64 = 262144

functions

10func cp_fnv(s: *u8, n: i64) -> i64
15func cp_read_file(path: *u8, out: *u8, cap: i64) -> i64
22func cp_apply(path: *u8, content: *u8, n: i64) -> i64
28func cp_current_gen(path: *u8) -> i64
called by 1: main calls 3: sys_mmapcp_read_filecp_fnv