Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (P)
Guardian Procedure Calls Reference Manual—522629-013
12-253
PROCESSOR_GETNAME_ Procedure
PROCESSOR_GETNAME_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Example
Summary
The PROCESSOR_GETNAME_ procedure returns a processor’s type and model. You
can designate the processor of interest either by supplying a processor number with a
node number or name, or by supplying a processor number alone. Alternatively, you
can supply just the numerical representation of the processor type. If none of these
are supplied, the procedure returns information about the caller’s processor.
See Table 12-6, Summary of Processor Types and Models
for further information about
supported processors.
Syntax for C Programmers
•
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.
•
The parameter length specifies the length in bytes of the character string pointed
to by
node-name. The parameters node-name and length must either both be
supplied or both be absent.
#include <cextdecs(PROCESSOR_GETNAME_)>
short PROCESSOR_GETNAME_ ( short cpu-number
,char *name
,short maxlen
,short *namelen
,[ short *cpu-type-out ]
,[ const char *node-name ]
,[ short length ]
,[ __int32_t node-number ]
,[ short cpu-type-in ]
,[ short expand-name ]
,[ short *cpu-model-out ]
,[ short cpu-model-in ] );