__get_cpuid() — Retrieves the system CPUID

Standards

Standards / Extensions C or C++ Dependencies
z/OS® UNIX both

OS/390 V2R10

Format

#define _OPEN_SYS_EXT 1
#include <sys/ps.h>

int __get_cpuid(char *buff);

General description

Retrieves the current CPU ID in the form of a string containing the readable part of the serial number concatenated with the model number. The variable buff is a character string of 11 bytes in length. It is a work area to build the unique cpuid.

Returned value

Always returns the serial and model number.

Related information