get_cpuid

Function get_cpuid 

Source
pub fn get_cpuid(leaf: u32, subleaf: u32) -> Result<CpuidResult, GetCpuidError>
Expand description

Extract entry from the cpuid.

ยงErrors

  • When the given leaf is more than max_leaf supported by CPUID.
  • When the CPUID leaf sub-leaf is invalid (all its register equal 0).