nx_natfu_probe.nx
buildroot/runtime/nx_natfu_probe.nx
about
nx_natfu_probe.nx -- NATIVE futex-roundtrip probe for the 11-import HAL.
Spawns one thread via sys_thread_create (CreateThread); worker spins ~50M
then stores flag=1 + sys_futex_wake (WakeByAddressAll); main futex_waits
(WaitOnAddress) until the flag flips, prints FUTEXOK. Race-safe both
orders: WaitOnAddress returns immediately when *addr != compare.
If the 11-import layout broke the wait/wake IAT binding, this HANGS --
reproducing the LLM-gate deadlock in a 1-second probe.
license_tier: ORIGINAL expect_exit: 0
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_tier.nxnx_atom.nxnx_thread.nxnx_thread_pool.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 14 | const K_MAGIC_50000000: i64 = 50000000 |
functions
| 16 | func fu_worker(arg: *u8) -> i64 |
| 25 | func main() -> i64 |