Struct kernel_hal::vdso::VdsoConstants [−][src]
This struct contains constants that are initialized by the kernel once at boot time. From the vDSO code’s perspective, they are read-only data that can never change. Hence, no synchronization is required to read them.
Fields
max_num_cpus: u32
Maximum number of CPUs that might be online during the lifetime of the booted system.
features: Features
Bit map indicating features.
dcache_line_size: u32
Number of bytes in a data cache line.
icache_line_size: u32
Number of bytes in an instruction cache line.
ticks_per_second: u64
Conversion factor for zx_ticks_get return values to seconds.
ticks_to_mono_numerator: u32
Ratio which relates ticks (zx_ticks_get) to clock monotonic.
Specifically: ClockMono(ticks) = (ticks * N) / D
ticks_to_mono_denominator: u32
physmem: u64
Total amount of physical memory in the system, in bytes.
version_string_len: u64
Actual length of version_string
, not including the NUL terminator.
version_string: VersionString
A NUL-terminated UTF-8 string returned by zx_system_get_version_string
.
Implementations
impl VdsoConstants
[src]
pub fn set_version_string(&mut self, s: &str)
[src]
Set version string.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VdsoConstants
impl Send for VdsoConstants
impl Sync for VdsoConstants
impl Unpin for VdsoConstants
impl UnwindSafe for VdsoConstants
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,