code wiki / (root) / nx_job_poll.nx

nx_job_poll.nx

buildroot/runtime/nx_job_poll.nx

3434 B80 linesdepth 6pulls 9 transitivereach 0 importersview sourcekind tooltopic job
docsdependenciesstructsconstsfunctions

about

nx_job_poll.nx -- R5 job-state tracking: poll Get-Job-Attributes for a job-id until it reaches a terminal state. Confirms our print actually COMPLETED (vs silently stalling) -- the "said done but nothing came out" killer. READ-ONLY -> never-brick. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_ipp_codec.nx nx_ipp_transport.nx nx_ipp_submit.nx nx_job_poll.nx

imports: nx_syscalls.nxnx_ipp_codec.nxnx_ipp_transport.nxnx_ipp_submit.nx

imported by: nobody (leaf or entry point)

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

main p sys_write pn sys_write ↻ sys_mmap sys_mmap ↻ nx_ipp_status nx_ipp_get_u16 phex16 sys_write ↻ nx_ipp_get_enum nx_ipp_find nx_ipp_strlen nx_ipp_get_u16 ↻ nx_ipp_name_eq nx_ipp_get_u32 jslabel nx_ipt_verdict_name sys_sleep_ms sys_mmap ↻ sys_munmap sys_exit

structs

none

consts

9const K_MAGIC_2048: i64 = 2048
10const K_MAGIC_131072: i64 = 131072
11const K_MAGIC_1500: i64 = 1500
13const JOBID: i64 = 49 // the job we just submitted

functions

15func p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
16func pn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
25func phex16(v: i64) -> i64
called by 1: main calls 1: sys_write
30func jslabel(s: i64) -> *u8
called by 1: main
41func main() -> i64