__get_cpuid_max in core::arch::x86 - Rust
Description: Returns the EAX and EBX register after calling CPUID with the provided `leaf`, with `sub_leaf` set to 0.

Skip to main content

## __get_cpuid_max

# Function __get_cpuid_max

1.27.0 · Source

    pub fn __get_cpuid_max(leaf: u32) -> (u32, u32)

Available on x86 and (x86 or x86-64) only.
Expand description

Returns the EAX and EBX register after calling CPUID with the provided `leaf`, with `sub_leaf` set to 0.

If `leaf` if 0 or `0x80000000`, the first tuple argument contains the maximum supported basic or extended leaf, respectively.

See also `__cpuid` and `__cpuid_count`.