Module cpuid

Source

Structs§

CpuidResult
Result of the cpuid instruction.

Constants§

CPUID
An x86-64 cpuid instruction.
CPUID_INSN_LEN
Length in bytes of an x86-64 cpuid instruction.
RDRAND_FLAG
rdrand flag in a cpuid(RDRAND_LEAF) result.
RDRAND_LEAF
cpuid leaf for finding the rdrand bit.
RDRAND_SUB_LEAF
cpuid leaf 1 doesn’t have sub-leaves.
RDSEED_FLAG
rdseed flag in a cpuid_count(RDSEED_LEAF, RDSEED_SUB_LEAF) result.
RDSEED_LEAF
cpuid leaf for finding the rdseed bit.
RDSEED_SUB_LEAF
cpuid sub-leaf for finding the rdseed bit.

Functions§

cpuid
Execute the cpuid instruction for the given leaf and sub_leaf.
ip_is_cpuid
Whether ip points to a cpuid instruction.
supports_rdrand
Whether the current CPU supports the rdrand instruction.
supports_rdseed
Whether the current CPU supports the rdseed instruction.