Struct nc::types::getcpu_cache_t
source · #[repr(C)]pub struct getcpu_cache_t {
pub blob: [usize; 32],
}
Expand description
Cache for getcpu()
to speed it up. Results might be a short time
out of date, but will be faster.
User programs should not refer to the contents of this structure. I repeat they should not refer to it. If they do they will break in future kernels.
It is only a private cache for vgetcpu()
. It will change in future kernels.
The user program must store this information per thread (__thread)
If you want 100% accurate information pass NULL instead.
Fields§
§blob: [usize; 32]
Trait Implementations§
source§impl Debug for getcpu_cache_t
impl Debug for getcpu_cache_t
source§impl Default for getcpu_cache_t
impl Default for getcpu_cache_t
source§fn default() -> getcpu_cache_t
fn default() -> getcpu_cache_t
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for getcpu_cache_t
impl RefUnwindSafe for getcpu_cache_t
impl Send for getcpu_cache_t
impl Sync for getcpu_cache_t
impl Unpin for getcpu_cache_t
impl UnwindSafe for getcpu_cache_t
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