nx_proc_list.nx
buildroot/runtime/nx_proc_list.nx
about
nx_proc_list.nx -- SOVEREIGN process lister (no ps/shell). Scans /proc, prints "pid<TAB>comm" for
every process whose comm contains "torrent" or "nx_" (to find what holds the torrent port). Run: nx_proc_list
dependencies 1 imports · 0 importers
imports: nx_syscalls.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
| 5 | const PBUF: i64 = 65536 |
functions
| 7 | func pl_p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 8 | func pl_n(v: i64) -> i64 { let t: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m} var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} let b: *u8=sys_mmap(28); var i: i64=0; while i<k{b[i]=t[k-1-i];i=i+1} sys_write(1,b,k); return 0 } |
| 9 | func pl_pid(name: *u8) -> i64 called by 1: main |
| 16 | func pl_has(buf: *u8, n: i64, s: *u8) -> i64 called by 1: main |
| 23 | func main() -> i64 |