code wiki / _hdl_build / nx_kernel_census.nx
nx_kernel_census.nx
buildroot/runtime/_hdl_build/nx_kernel_census.nx
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
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
structs
| none |
consts
| 20 | const KC_MAGIC_2000000: i64 = 2000000 |
| 21 | const KC_MAGIC_80000: i64 = 80000 |
| 22 | const KC_MAGIC_300000: i64 = 300000 |
| 23 | const KC_MAGIC_40000: i64 = 40000 |
| 33 | const KC_MARKERS: *u8 = "knowledge/registry/kernel_live_markers.tsv" |
| 34 | const KC_BIN: *u8 = "runtime/_hdl_build/_boot_nishi_virt.bin" |
| 35 | const KC_BIN_ALT: *u8 = "_boot_nishi_virt.bin" |
| 36 | const KC_TX_CAP: i64 = 4096 |
| 38 | const KC_REF: *u8 = "knowledge/registry/kernel_incumbent_ref.tsv" |
| 39 | const KC_OUT: *u8 = "knowledge/registry/kernel_competitive_census.tsv" |
| 40 | const KC_LOG: *u8 = "knowledge/status/kernel_census.log" |
| 41 | const KC_MAXF: i64 = 256 |
| 44 | const KC_E0: *u8 = "knowledge/status/boot_stub.log" |
| 45 | const KC_E1: *u8 = "knowledge/status/trap_syscall.log" |
| 46 | const KC_E2: *u8 = "knowledge/status/virtio_blk.log" |
| 47 | const KC_E3: *u8 = "knowledge/status/virtio_net.log" |
| 48 | const KC_E4: *u8 = "knowledge/status/hwmap.log" |
| 49 | const KC_E5: *u8 = "knowledge/status/timer_irq.log" |
| 50 | const KC_E6: *u8 = "knowledge/status/sched.log" |
| 51 | const KC_E7: *u8 = "knowledge/status/memalloc.log" |
| 52 | const KC_E8: *u8 = "knowledge/status/coopsched.log" |
| 53 | const KC_E9: *u8 = "knowledge/status/driver_spec.log" |
| 54 | const KC_E10: *u8 = "knowledge/status/driver_bind.log" |
| 55 | const KC_E11: *u8 = "knowledge/status/nndev.log" |
| 56 | const KC_E12: *u8 = "knowledge/status/mmu.log" |
| 57 | const KC_E13: *u8 = "knowledge/status/priv.log" |
functions
| 59 | func 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 } |
| 64 | func kc_wn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 } |
| 67 | func kc_read_file(path: *u8, buf: *u8, cap: i64) -> i64 |
| 82 | func kc_read_into(path: *u8, buf: *u8, off: i64, cap: i64) -> i64 |
| 96 | func kc_scan_to(buf: *u8, n: i64, start: i64, delim: i64) -> i64 called by 1: main |
| 103 | func 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 |
| 105 | func kc_vstr(v: i64) -> *u8 called by 1: kc_emit |
| 113 | func kc_streq(a: *u8, b: *u8) -> i64 called by 1: main |
| 122 | func kc_emit2(fd: i64, live: i64, gap: i64, anom: i64, livep: i64, head: i64) -> i64 |
| 131 | func 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 |
| 144 | func main() -> i64 |