HPlogo MPE/iX Intrinsics Reference Manual > Chapter 6 Command Definitions (FLUSHLOG-GETUSERMODE)

GETPROCINFO

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

NM and CM callable.

Returns status information about the parent or a child process. Process handling (PH) capability is required.

Syntax



  I32                         I16V
  processinfo := GETPROCINFO (pin);

Functional Return


processinfo

32-bit signed integer (assigned functional return)

Returns the process management information about a parent or child process:

BitsValueMeaning
31:1Activity state:
0Process suspended
1Process active
29:2Suspension condition - If bit (31:1)=0:
00Not used
01Parent activation source
10Child activation source
11Either parent or child activation source
25:4Reserved for the operating system
23:2Origin of the last ACTIVATE intrinsic call:
00operating system activation
01Parent activation
10Child activation
11Not used
20:3Queue characteristics:
001DS or ES priority class
010CS priority class
100Linearly scheduled (AS, BS, or master queue)
16:4Reserved for the operating system
8:8Process priority number in master queue
0:8Reserved for the operating system

Parameters


pin

16-bit signed integer by value (required)

Passes the PIN of the process that the returned message pertains to. If requesting a parent process, set pin to zero. If requesting a child process, set pin to the process identification number (PIN) of that process.

Condition Codes


CCE (2)Request granted.
CCG (0)Request denied. The process is already being terminated.
CCL (1)Request denied. An illegal PIN was specified.

Related Information


IntrinsicsGETINFO, GETPRIORITY, HPMYFILE, HPMYPROGRAM, JOBINFO, PROCINFO, PROCTIME, WHO
Manuals Process Management Programmer's Guide




GETPROCID


GETUSERMODE