Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (P)
Guardian Procedure Calls Reference Manual—522629-013
12-230
PROCESSINFO Procedure
(Superseded by PROCESS_GETINFOLIST_
priv-only output
INT:ref:*
This parameter can be used only by a privileged caller.
process-time output
FIXED:ref:1
returns the process time, in microseconds, for which the process has executed.
wait-state output
INT:ref:1
returns the wait field indicating what, if anything, the process is waiting on. It is
obtained from the wait field of the awake/wait word in the process’s process control
block. The following bits are defined:
<8> wait on PON (processor power on)
<9> wait on IOPON (I/O power on)
<10> wait on INTR (interrupt)
<11> wait on LINSP (Inspect event)
<12> wait on LCAN (message system, cancel)
<13> wait on LDONE (message system, done)
<14> wait on LTMF (TMF request)
<15> wait on LREQ (message system, request)
The bits in the wait field are numbered from left to right; thus, if octal 3 (%003)
appears, this means that bits 14 and 15 are equal to 1.
process-state output
INT:ref:1
returns the state of the process specified by
cpu,pin. The bits are defined as
follows:
<0> privileged process
<1> page fault occurred
<2> process is on the ready list
<3> system process
<4:5> reserved
<6> memory access breakpoint in system code
<7> process not accepting any messages
<8> temporary system process
<9> process has logged on (called USER_AUTHENTICATE_ or
VERIFYUSER)
<10> in a pending process state
<11:15> the process state, where:
0 unallocated process
1starting
2 runnable
3 suspended