Guardian Procedure Calls Reference Manual

PROCESSORSTATUS Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Returned Value
Summary
The PROCESSORSTATUS procedure returns the highest processor number plus 1 of the configured
processor modules in a system and the operational states of all the processor modules.
For further information about supported processors, See Table 39 (page 1168).
Syntax for C Programmers
#include <cextdecs(PROCESSORSTATUS)>
__int32_t PROCESSORSTATUS ( void );
CEXTDECS (through the included file TNSINTH) defines 32-bit values as the typedef __int32_t
, which for TNS and TNS/R compiles is defined as long and for TNS/E compiles is defined
as int.
Syntax for TAL Programmers
processor-status := PROCESSORSTATUS;
Returned Value
INT(32)
Two words that indicate: the highest processor number plus 1 of the configured processor modules,
and the operational states of all the processor modules.
The most significant word contains the highest processor number plus one.
The least significant word is a bit mask indicating the operational state of each processor module:
most significant word, highest processor number + 1Word[0]
least significant word, bit mask 1 or 0Word[1]
ls word.<0> = processor module 0
ls word.<1> = processor module 1
.
.
.
ls word.<14> = processor module 14
ls word.<15> = processor module 15
1176 Guardian Procedure Calls (P)