Browse Source Download (without any required ccan dependencies)

Module:

cpuid

Summary:

a CPUID instruction parser for x86/x86_64 CPUs.

Author:

Ahmed Samy <f.fallen45@gmail.com>

Dependencies:

Description:

This module tries to keep-it-simple to get information about the CPU from the CPU.

Example:

#include <ccan/cpuid/cpuid.h>
#include <stdio.h>

int main(void)
{
     uint32_t highest;
     cpuid(CPUID_HIGHEST_EXTENDED_FUNCTION_SUPPORTED, &highest);
     printf("Highest extended function supported: %d\n", highest);

     return 0;
}

License:

MIT