code wiki / _hdl_build / nx_sysload.nx

nx_sysload.nx

buildroot/runtime/_hdl_build/nx_sysload.nx

4063 B97 linesdepth 2pulls 2 transitivereach 8 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_sysload.nx -- sovereign host-resource readers (/proc) so the governor senses the REAL system it runs on (operator: "without overwhelming this system or any system they are on"). Reads load average, CPU count, and available memory. license_tier: ORIGINAL Feeds nx_resource_governor.

dependencies 1 imports · 8 importers

nx_syscalls.nx nx_sysload.nx nx_governed_autoloop.nx nx_governed_pulse.nx nx_polite_daemon.nx nx_polite_loop.nx nx_resource_prove.nx nx_selfbuild_governed.nx nx_team_console.nx nx_unified_conductor.nx

imports: nx_syscalls.nx

imported by: nx_governed_autoloop.nxnx_governed_pulse.nxnx_polite_daemon.nxnx_polite_loop.nxnx_resource_prove.nxnx_selfbuild_governed.nxnx_team_console.nxnx_unified_conductor.nx

structs

none

consts

6const K_MAGIC_1024: i64 = 1024

functions

9func sl_count_substr(buf: *u8, n: i64, needle: *u8, nl: i64) -> i64
20func sl_loadavg_milli() -> i64
46func sl_ncpu() -> i64
59func sl_active_conns_8443() -> i64
69func sl_freemem_mb() -> i64