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:

Bits

Value/Meaning

31:1

Activity state:

0

Process suspended

1

Process active

29:2

Suspension condition:

If bit (31:1)=0:

00

Not used

01

Parent activation source

10

Child activation source

11

Either parent or child activation source

25:4

Reserved for the operating system

23:2

Origin of the last ACTIVATE intrinsic call:

00

operatiang system activation

01

Parent activation

10

Child activation

11

Not used

20:3

Queue characteristics:

001

DS or ES priority class

010

CS priority class

100

Linearly scheduled (AS, BS, or master queue)

16:4

Reserved for the operating system

8:8

Process priority number in master queue

0:8

Reserved 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


Manual

Process Management Programmer's Guide




GETPROCID


GETUSERMODE