#[repr(C)]pub struct cpuinfo_processor {
pub smt_id: u32,
pub core: *const cpuinfo_core,
pub cluster: *const cpuinfo_cluster,
pub package: *const cpuinfo_package,
pub linux_id: c_int,
pub apic_id: u32,
pub cache: cpuinfo_processor__bindgen_ty_1,
}
Fields§
§smt_id: u32
SMT (hyperthread) ID within a core
core: *const cpuinfo_core
Core containing this logical processor
cluster: *const cpuinfo_cluster
Cluster of cores containing this logical processor
package: *const cpuinfo_package
Physical package containing this logical processor
linux_id: c_int
Linux-specific ID for the logical processor:
- Linux kernel exposes information about this logical processor in /sys/devices/system/cpu/cpu<linux_id>/
- Bit <linux_id> in the cpu_set_t identifies this logical processor
apic_id: u32
APIC ID (unique x86-specific ID of the logical processor)
cache: cpuinfo_processor__bindgen_ty_1
Trait Implementations§
Source§impl Clone for cpuinfo_processor
impl Clone for cpuinfo_processor
Source§fn clone(&self) -> cpuinfo_processor
fn clone(&self) -> cpuinfo_processor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for cpuinfo_processor
impl Debug for cpuinfo_processor
impl Copy for cpuinfo_processor
Auto Trait Implementations§
impl Freeze for cpuinfo_processor
impl RefUnwindSafe for cpuinfo_processor
impl !Send for cpuinfo_processor
impl !Sync for cpuinfo_processor
impl Unpin for cpuinfo_processor
impl UnwindSafe for cpuinfo_processor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more