code wiki / _hdl_build / nx_kernel_census.nx

nx_kernel_census.nx

buildroot/runtime/_hdl_build/nx_kernel_census.nx

13871 B288 linesdepth 6pulls 20 transitivereach 0 importersview sourcekind tooltopic kernel
docsdependenciesstructsconstsfunctions

about

nx_kernel_census.nx -- KERNEL/OS/DRIVER/GRAPHICS competitive census (operator 2026-06-13: "benchmark against all the top kernels as competitors to get our S-class exceed ... device drivers, DirectX exceed, CUDA exceed ... beat all the kernels' killer OS features from the hardware rung up through the kernel and OS up"). AUTHOR=ORGAN, NO-WAVE (measured per-feature head-to-head, never a fake binary exceed): reads kernel_incumbent_ref.tsv (bench-reference = the QUESTIONS: real incumbent killer features) and COMPUTES Nishi's PRESENT/ABSENT per feature via re_has against the REAL Nishi gate logs (boot_stub / trap_syscall / virtio_blk / virtio_net / hwmap = the PROOF of what is actually built) -- never tutor-asserted. Writes kernel_competitive_census.tsv + an honest bm_verdict (BEHIND while the kernel is young = the true starting line; the ABSENT rows are the build-to-exceed backlog). Self-validating: pos control "virtio" MUST be PRESENT (Nishi has it), neg control MUST be ABSENT. Composes nx_research_extract (re_has) + nx_benchmark (honest verdict, refuses cherry-pick). license_tier: ORIGINAL

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_research_extract.nx nx_benchmark.nx nx_bootcap.nx nx_kernel_census.nx

imports: nx_syscalls.nxnx_itoa_lib.nxnx_research_extract.nxnx_benchmark.nxnx_bootcap.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 kc_read_into sys_openat_rd sys_read sys_close kc_w sys_write kc_read_file sys_openat_rd ↻ sys_read ↻ sys_close ↻ kc_scan_to kc_app re_has re_find re_strlen sys_openat_wr sys_write ↻ sys_close ↻ bootcap_load sys_read_file sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read ↻ sys_close ↻ bootcap_run nx_rv64im_rf_init nx_rv64im_csr_init nx_clint_init nx_uart_init nx_virtio_init nx_virtio_reset_storage nx_virtio_init_net nx_virtio_reset_storage ↻ nx_nvme_init nx_nvme_reset_storage nx_nndev_init nx_nndev_reset

structs

none

consts

20const KC_MAGIC_2000000: i64 = 2000000
21const KC_MAGIC_80000: i64 = 80000
22const KC_MAGIC_300000: i64 = 300000
23const KC_MAGIC_40000: i64 = 40000
33const KC_MARKERS: *u8 = "knowledge/registry/kernel_live_markers.tsv"
34const KC_BIN: *u8 = "runtime/_hdl_build/_boot_nishi_virt.bin"
35const KC_BIN_ALT: *u8 = "_boot_nishi_virt.bin"
36const KC_TX_CAP: i64 = 4096
38const KC_REF: *u8 = "knowledge/registry/kernel_incumbent_ref.tsv"
39const KC_OUT: *u8 = "knowledge/registry/kernel_competitive_census.tsv"
40const KC_LOG: *u8 = "knowledge/status/kernel_census.log"
41const KC_MAXF: i64 = 256
44const KC_E0: *u8 = "knowledge/status/boot_stub.log"
45const KC_E1: *u8 = "knowledge/status/trap_syscall.log"
46const KC_E2: *u8 = "knowledge/status/virtio_blk.log"
47const KC_E3: *u8 = "knowledge/status/virtio_net.log"
48const KC_E4: *u8 = "knowledge/status/hwmap.log"
49const KC_E5: *u8 = "knowledge/status/timer_irq.log"
50const KC_E6: *u8 = "knowledge/status/sched.log"
51const KC_E7: *u8 = "knowledge/status/memalloc.log"
52const KC_E8: *u8 = "knowledge/status/coopsched.log"
53const KC_E9: *u8 = "knowledge/status/driver_spec.log"
54const KC_E10: *u8 = "knowledge/status/driver_bind.log"
55const KC_E11: *u8 = "knowledge/status/nndev.log"
56const KC_E12: *u8 = "knowledge/status/mmu.log"
57const KC_E13: *u8 = "knowledge/status/priv.log"

functions

59func kc_w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 }
called by 3: kc_emit2kc_emitmain calls 1: sys_write
64func kc_wn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 }
called by 3: kc_emit2kc_emitmain calls 1: nxi_fd
67func kc_read_file(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
82func kc_read_into(path: *u8, buf: *u8, off: i64, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
96func kc_scan_to(buf: *u8, n: i64, start: i64, delim: i64) -> i64
called by 1: main
103func kc_app(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { dst[off+i] = s[i]; i = i + 1 } return off + i }
called by 1: main
105func kc_vstr(v: i64) -> *u8
called by 1: kc_emit
113func kc_streq(a: *u8, b: *u8) -> i64
called by 1: main
122func kc_emit2(fd: i64, live: i64, gap: i64, anom: i64, livep: i64, head: i64) -> i64
called by 1: kc_emit calls 2: kc_wkc_wn
131func kc_emit(fd: i64, nf: i64, present: i64, cpos: i64, cneg: i64, cov: i64, verdict: i64, ok: i64, live: i64, gap: i64, anom: i64, livep: i64, head: i64) -> i64
called by 1: main calls 4: kc_wkc_wnkc_vstrkc_emit2
144func main() -> i64