*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> cpu (9v)              



NAME    [Toc]    [Back]

       cpu  -  Global Variable: Provides a unique logical processor-type
 family identifier

SYNOPSIS    [Toc]    [Back]

       extern int cpu;

DESCRIPTION    [Toc]    [Back]

       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(); }

[ Back ]
 Similar pages
Name OS Title
lbolt Tru64 Global Variable: Is a periodic wakeup mechanism
page_size Tru64 Global Variable: Is the virtual page size
pthread_setconcurrency Tru64 Changes the value of the concurrency level global variable for this process
getuid IRIX convert from string to unique identifier
gethostid Tru64 Get the unique identifier of the current host
sethostid NetBSD get/set unique identifier of current host
gethostid NetBSD get/set unique identifier of current host
pthread_getsequence_np Tru64 Obtains the unique identifier for the specified thread
sethostid OpenBSD get/set unique identifier of current host
sethostid FreeBSD get/set unique identifier of current host
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service