Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getcpustatus(2) — OS/MP 4.1A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

syscall(2)

setcpustatus(2)

cpustatus(8)

GETCPUSTATUS(2)  —  SYSTEM CALLS

NAME

getcpustatus − get enable status of all CPUs

SYNOPSIS


syscall(SYS_getcpustatus, status, width, type)
unsigned int ∗status;
unsigned int ∗width;
unsigned int ∗type;

DESCRIPTION

getcpustatus() returns the enable status of all the CPUs in the machine.  status is a bit mask that represents the status of each CPU in the system.  Each bit in status which is set to a 1 indicates that CPU is enabled and running.  width is the number of valid bits in the CPU bit mask status.  type indicates the type of the CPUs and the machine model.  Refer to <machine/cpu.h> for details on information passed in type. 

The master CPU is always assigned CPU number 0.  All slave CPUs are arbitrarily assigned a unique CPU number. 

WARNING

This system call is only accessible via syscall(2). 

RETURN VALUE

Upon successful completion, a value of 0 is returned.  Otherwise a value of −1 is returned and errno is set to indicate an error. 

ERRORS

getcpustatus() will fail and the status of the CPUs will be unchanged if one or more of the following are true:

EFAULT Any of the parameters point outside of the process’s allocated address space. 

SEE ALSO

syscall(2), setcpustatus(2), cpustatus(8)

Solbourne Computer, Inc.  —  1 November 1988

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026