next up previous contents index
Next: 10.5.3 cpu_info_format: output a Up: (X86) Processor Identification and Previous: 10.5.1 cpu_info: CPU identification

10.5.2 cpuid: identify the current CPU

   

SYNOPSIS

#include <oskit/x86/cpuid.h>

void cpuid([out] struct cpu_info *out_info);

DESCRIPTION

This function identifies the CPU on which it is running using Intel's recommended CPU identification procedure, and fills in the supplied structure with the information found.

Note that since the cpuid function is 32-bit code, it wouldn't run on anything less than an 80386 in the first place; therefore it doesn't bother to check for earlier processors.

PARAMETERS

out_info
The CPU information structure to fill in.



University of Utah Flux Research Group