Struct raw_cpuid::ProcessorSerial
source · pub struct ProcessorSerial { /* private fields */ }
Expand description
Processor Serial Number (LEAF=0x3).
Deprecated
Processor serial number (PSN) is not supported in the Pentium 4 processor or later. On all models, use the PSN flag (returned using CPUID) to check for PSN support before accessing the feature.
Platforms
❌ AMD ✅ Intel
Implementations§
source§impl ProcessorSerial
impl ProcessorSerial
sourcepub fn serial_lower(&self) -> u32
pub fn serial_lower(&self) -> u32
Bits 00-31 of 96 bit processor serial number.
(Available in Pentium III processor only; otherwise, the value in this register is reserved.)
sourcepub fn serial_middle(&self) -> u32
pub fn serial_middle(&self) -> u32
Bits 32-63 of 96 bit processor serial number.
(Available in Pentium III processor only; otherwise, the value in this register is reserved.)
sourcepub fn serial_upper(&self) -> u32
pub fn serial_upper(&self) -> u32
Bits 64-96 of 96 bit processor serial number.
sourcepub fn serial(&self) -> u64
pub fn serial(&self) -> u64
Combination of bits 00-31 and 32-63 of 96 bit processor serial number.
sourcepub fn serial_all(&self) -> u128
pub fn serial_all(&self) -> u128
96 bit processor serial number.
Trait Implementations§
source§impl Debug for ProcessorSerial
impl Debug for ProcessorSerial
source§impl PartialEq<ProcessorSerial> for ProcessorSerial
impl PartialEq<ProcessorSerial> for ProcessorSerial
source§fn eq(&self, other: &ProcessorSerial) -> bool
fn eq(&self, other: &ProcessorSerial) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.