 |
Index for Section 9v |
|
 |
Alphabetical listing for C |
|
 |
Bottom of page |
|
cpu(9v)
NAME
cpu - Global Variable: Provides a unique logical processor-type family
identifier
SYNOPSIS
extern int cpu;
DESCRIPTION
The cpu global variable provides a unique logical family identifier of the
processor type of the running system. The logical system name can represent
a single processor or a family of processor types. For example, the
constant DEC_3000_500 represents the DEC 3000 Model 500 Alpha Workstation.
The defined processor names appear in the following file:
/usr/sys/include/arch/alpha/hal/cpuconf.h.
You use the cpu global variable to conditionally execute processor-specific
code. For example, the following code fragment calls a system-specific
initialization interface for the DEC 3000 Model 500 Alpha Workstation:
.
.
.
if (cpu == DEC_3000_500) {
init_3000_500();
}
.
.
.
 |
Index for Section 9v |
|
 |
Alphabetical listing for C |
|
 |
Top of page |
|