netware_cpu_info

Returns information about the current CPU.

Library:LibC
Classification:NovellĀ®
Service:NetWare Platform

Syntax

  #include <monitor.h>
   
  int netware_cpu_info (
     struct cpu_info   *info,
     int               *sequence);
  

Parameters

info

(OUT) Points to the cpu_info structure, which contains information about the current CPU.

sequence

(IN/OUT) Specifies the iteration of the function. To view information about all CPUs, pass zero the first time the function is called and do not modify the returned value on subsequent calls. To view information about a specific CPU, set sequence to the CPU number.

Return Values

If successful, returns 0; otherwise, returns a nonzero error code:

Decimal

Hex

Constant

Description

66

0x42

ENOSYS

The function cannot be exported (error from NetWare ExportPublicSymbol).

77

0x4D

ESRCH

The volume does not exist.

Remarks

The netware_cpu_info function is iterative so that the information for one CPU is returned each time the function is called.

This function is not supported on NetWare 5.x.