#include "zos-macros.h"
#include <stdint.h>
#include <stdlib.h>
Go to the source code of this file.
◆ ZOSCPU_MODEL_LENGTH
#define ZOSCPU_MODEL_LENGTH 4 |
◆ ZOSCCT_t
◆ ZOSCVT_t
◆ ZOSPCCA
◆ ZOSPCCAVT
◆ ZOSPSA_t
◆ ZOSRCE_t
◆ ZOSRMCT_t
◆ oslvl_t
Enumerator |
---|
ZOSLVL_V1R13 | |
ZOSLVL_V2R1 | |
ZOSLVL_V2R2 | |
ZOSLVL_V2R3 | |
ZOSLVL_V2R4 | |
ZOSLVL_V2R5 | |
ZOSLVL_V3R1 | |
ZOSLVL_UNKNOWN | |
◆ __get_cpu_model()
__Z_EXPORT char * __get_cpu_model |
( |
char * |
buffer, |
|
|
size_t |
size |
|
) |
| |
Gets the 4 character CPU model of the system, including the null terminating character. Truncated if buffer size is too small.
- Parameters
-
buffer | pointer to the buffer where the cpu model is to be stored |
size | the size of the buffer |
- Returns
- pointer to the buffer.
◆ __get_num_frames()
Get the number of frames currently available to the system
- Returns
- returns the number of available frames
◆ __get_num_online_cpus()
Get the number of online CPUs
- Returns
- returns the number of online CPUs
◆ __get_os_level()
Get the OS level
- Returns
- the OS level as ZOSLVL_V2R1/2/3/4/5 (values are in ascending order)
◆ __is_os_level_at_or_above()
Check if current OS is at or above a given level
- Returns
- true if the current OS level is at or above the given level, and false otherwise
◆ __is_stfle_available()
Check if STFLE (STORE FACILITY LIST EXTENDED) instruction is available
- Returns
- true if the STFLE instruction is available
◆ __is_vef1_available()
Check if the current z arch includes Vector Enhancements Facility 1
- Returns
- true if Vector Enhancements Facility 1 instructions are available, and false otherwise
◆ __is_vxf_available()
Check if the current z arch includes Vector Extension Facility
- Returns
- true if Vector Extension Facility instructions are available, and false otherwise