code wiki / _hdl_build / nx_site_lock.nx

nx_site_lock.nx

buildroot/runtime/_hdl_build/nx_site_lock.nx

2886 B56 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic site
docsdependenciesstructsconstsfunctions

about

nx_site_lock.nx -- the one-click operational tool over the real lock registry. Resolves whether a (site, path) is locked and into which OPAQUE realm/level. Usage: nx_site_lock <site> <path> -> prints LOCKED/PUBLIC for that request nx_site_lock -> self-demo over the seeded knowledge/registry/site_locks.tsv A serving daemon calls slk_resolve directly; this runner proves the real registry file parses and gives the operator a quick "is X locked?" check. Sovereign. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_site_lock_lib.nx nx_site_lock.nx

imports: nx_syscalls.nxnx_site_lock_lib.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sl_slurp sys_openat_rd sys_read sys_close sl_p sys_write sys_exit sl_query sys_mmap ↻ slk_resolve sys_mmap ↻ slk_line_end slk_field slk_eq slk_at slk_path_match slk_atoi slk_slen sl_p ↻ sl_pn sys_mmap ↻ sys_write ↻

structs

none

consts

9const SL_MAGIC_1048576: i64 = 1048576
11const SL_REG: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/knowledge/registry/site_locks.tsv"

functions

13func sl_p(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: sl_querymain calls 1: sys_write
14func sl_pn(v: i64) -> i64
called by 1: sl_query calls 2: sys_mmapsys_write
22func sl_slurp(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
31func sl_query(reg: *u8, n: i64, site: *u8, path: *u8) -> i64
41func main(argc: i64, argv: *i64) -> i64