Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ proc_info(2) — Motorola System V 88k Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pinfo(1M)

processor_info(2)  —  SYSTEM CALLS

NAME

processor_info − get information about one processor

SYNOPSIS

#include <sys/types.h>
#include <sys/processor.h> int processor_info (processorid_t processorid, processor_info_t ∗infop)

DESCRIPTION

processor_info obtains information about a single processor in the system.  The information is returned in the processor_info_t structure pointed to by infop. This structure contains the following fields:

int pi_stateEither P_ONLINE or P_OFFLINE.  If the processor is offline, the other fields are meaningless. 

char pi_processor_type[16]
A null terminated ASCII string specifying the type of processor; one of P_88100, P_88110, P_68040, or P_68030. 

char pi_fputypes[32]A null terminated ASCII string specifying the type of floating point hardware available.  The string consists of the floating point identifier string P_FPU. 

int pi_clockThe frequency of the processor clock, in megahertz, rounded to the nearest integer. 

DIAGNOSTICS

processor_info returns 0 on success, or −1 on failure.  Failure may result from:

EFAULT The infop pointer points to an invalid memory address. 

EINVAL The processorid does not refer to an existing processor. 

EIO The processor to which processorid refers is not operational. 

SEE ALSO

pinfo(1M)

  —  Multiprocessing

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