code wiki / (root) / nx_glprobe.nx

nx_glprobe.nx

buildroot/runtime/nx_glprobe.nx

3677 B77 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_glprobe.nx -- CLI over nx_glprobe_lib (the GL-context probe ruler). Holds NO table of its own: the classifier, the state and remedy strings and the bare-refusal detector all live in the lib, so this organ, the emitted JS and nx_glprobe_gate cannot disagree. usage: nx_glprobe classify <gl2 0|1> <gl1 0|1> <gpu 0|1> -> JSON {state, remedy} nx_glprobe js -> the emitted probe, verbatim nx_glprobe scan <path> -> JSON {bare_refusals, composes_probe} exit: 0 ok | 2 usage | 3 unreadable license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_glprobe_lib.nx nx_glprobe.nx

imports: nx_syscalls.nxnx_glprobe_lib.nx

imported by: nobody (leaf or entry point)

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

main gp_puts sys_write gp_verb glp_js gp_flag glp_classify gp_pn gp_puts ↻ sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_write ↻ glp_state_name glp_remedy sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close glp_bare_count glp_composes

structs

none

consts

none

functions

12func gp_puts(s: *u8) -> i64 { sys_write(1, s, glp_slen(s)); return 0 }
called by 2: gp_pnmain calls 1: sys_write
13func gp_pn(v: i64) -> i64
called by 1: main calls 3: gp_putssys_mmapsys_write
27func gp_flag(s: *u8) -> i64
called by 1: main
33func gp_verb(s: *u8, v: *u8) -> i64
called by 1: main
40func main(argc: i64, argv: *i64) -> i64