Useful kernel variables

The following table lists a few examples of useful kernel variables that can be accessed from within a Vue script. Be careful when using them in a Vue script because although not likely, the names of these variables or their meanings can change across different releases of AIX®. All these kernel variables are pinned in memory and exported from the kernel.

Kernel variable Description Associated header files
struct system_configuration _system_configuration System configuration structure. sys/systemcfg.h
struct var v Base kernel tunable (and other) parameters. sys/var.h
struct timestruc_t tod Memory-mapped time of day clock. Seconds and nanoseconds since Epoch. sys/time.h
cpu_t high_cpuid Highest logical CPU ID ever online. sys/encap.h
struct vminfo vmminfo Data structure that contains the information shown by the vmstat command. sys/vminfo.h
time_t lbolt Number of ticks since last boot. sys/time.h
char spurr_version Identifies if current system supports the SPURR register 0=No SPURR, 1=CPUs have SPURR. sys/sysinfo.h
struct utsname utsname System name structure that includes the operating system name, node name, release level, and so on. sys/utsname.h