Skip to main content

BootOptions

Struct BootOptions 

Source
#[repr(C)]
pub struct BootOptions {
Show 127 fields pub aslr_disabled: bool, pub aslr_entropy_bits: u8, pub cprng_reseed_require_hw_rng: bool, pub cprng_reseed_require_jitterentropy: bool, pub cprng_seed_require_hw_rng: bool, pub cprng_disable_jitterentropy: bool, pub cprng_disable_hw_rng: bool, pub cprng_seed_require_jitterentropy: bool, pub cprng_seed_require_cmdline: bool, pub entropy_mixin: RedactedHex, pub jitterentropy_bs: u32, pub jitterentropy_bc: u32, pub jitterentropy_ml: u32, pub jitterentropy_ll: u32, pub jitterentropy_raw: bool, pub jitterentropy_entropy_per_1000_bytes: u32, pub lockup_detector_critical_section_threshold_ms: u64, pub lockup_detector_critical_section_fatal_threshold_ms: u64, pub lockup_detector_heartbeat_period_ms: u64, pub lockup_detector_heartbeat_age_threshold_ms: u64, pub lockup_detector_age_fatal_threshold_ms: u64, pub lockup_detector_diagnostic_query_timeout_ms: u64, pub oom_behavior: OomBehavior, pub oom_timeout_ms: u32, pub mexec_force_high_ramdisk: bool, pub oom_enabled: bool, pub oom_out_of_memory_threshold_mb: u64, pub oom_critical_threshold_mb: u64, pub oom_warning_threshold_mb: u64, pub oom_debounce_mb: u64, pub oom_evict_at_warning: bool, pub oom_evict_continuous: bool, pub oom_eviction_delay_ms: u64, pub oom_evict_with_min_target: bool, pub oom_eviction_delta_at_oom_mb: u64, pub oom_hysteresis_seconds: u64, pub oom_imminent_oom_delta_mb: u64, pub oom_trigger_on_alloc_failure: bool, pub phys_next: SmallString, pub phys_verbose: bool, pub phys_backtrace_max: u32, pub phys_print_stack_max: u32, pub ppb_borrow_on_mru: bool, pub ppb_loan: bool, pub ppb_replace_on_unloan: bool, pub render_dlog_to_crashlog: bool, pub serial: __BindgenOpaqueArray8<[u8; 24]>, pub always_use_next_vdso: bool, pub vdso_ticks_get_force_syscall: bool, pub vdso_clock_get_force_syscall: bool, pub userpager_overtime_wait_seconds: u64, pub userpager_overtime_timeout_seconds: u64, pub userpager_overtime_printout_limit: u32, pub enable_virtual_heap: bool, pub heap_max_size_mb: u64, pub heap_alloc_fill_threshold: u64, pub bufferchain_reserve_pages: u64, pub bypass_debuglog: bool, pub debug_uart_poll: bool, pub enable_debugging_syscalls: bool, pub enable_serial_syscalls: SerialDebugSyscalls, pub entropy_test_src: EntropyTestSource, pub entropy_test_len: u64, pub force_watchdog_disabled: bool, pub halt_on_panic: bool, pub ktrace_bufsize: u32, pub ktrace_grpmask: u32, pub memory_limit_dbg: bool, pub memory_limit_mb: u64, pub page_scanner_enable_eviction: bool, pub page_scanner_page_table_eviction_policy: PageTableEvictionPolicy, pub page_scanner_page_table_eviction_period_ms: u32, pub page_scanner_min_aging_interval_ms: u32, pub page_scanner_max_aging_interval_ms: u32, pub page_scanner_accessed_scan_interval_ms: u32, pub page_scanner_active_ratio_multiplier: u32, pub page_scanner_start_at_boot: bool, pub page_scanner_zero_page_scans_per_second: u64, pub lru_action: ScannerLruAction, pub random_debug_compress: bool, pub compression_strategy: CompressionStrategy, pub compression_storage_strategy: CompressionStorageStrategy, pub compression_threshold: u32, pub compression_lz4_acceleration: u32, pub compression_at_memory_pressure: bool, pub compression_reclaim_anonymous: bool, pub compression_reclaim_zero_forks: bool, pub pmm_checker_action: CheckFailAction, pub pmm_checker_enabled: CheckerEnable, pub pmm_checker_fill_size: __BindgenOpaqueArray8<[u8; 16]>, pub pmm_alloc_random_should_wait: bool, pub stack_canary_percent_free: u64, pub port_observer_reserve_pages: u64, pub port_packet_reserve_pages: u64, pub root_job_behavior: RootJobBehavior, pub root_job_notice: SmallString, pub shell: bool, pub shell_script: SmallString, pub smp_ht_enabled: bool, pub test_ram_reserve: __BindgenOpaqueArray8<[u8; 32]>, pub max_port_observers: u64, pub select: SmallString, pub userboot: SmallString, pub scheduler_prefer_little_cpus: bool, pub enable_new_wakeup_accounting: bool, pub ubsan_action: CheckFailAction, pub debug_boot_spin: bool, pub allow_debug_uart_suspend: bool, pub experimental_expand_memory_stall: bool, pub x86_disable_spec_mitigations: bool, pub x86_hwp: bool, pub x86_hwp_policy: IntelHwpPolicy, pub x86_md_clear_on_user_return: bool, pub x86_spec_store_bypass_disable: bool, pub x86_turbo: bool, pub x86_enable_pcid: bool, pub x86_smp_max_cpus: u32, pub x86_wallclock: WallclockType, pub test_uint32: u32, pub test_uint64: u64, pub test_bool: bool, pub test_smallstring: SmallString, pub test_enum: TestEnum, pub test_struct: TestStruct, pub test_redacted_hex: RedactedHex, pub test_auto_or_uint64: __BindgenOpaqueArray8<[u8; 16]>, pub smp_max_cpus: u32,
}

Fields§

§aslr_disabled: bool§aslr_entropy_bits: u8§cprng_reseed_require_hw_rng: bool§cprng_reseed_require_jitterentropy: bool§cprng_seed_require_hw_rng: bool§cprng_disable_jitterentropy: bool§cprng_disable_hw_rng: bool§cprng_seed_require_jitterentropy: bool§cprng_seed_require_cmdline: bool§entropy_mixin: RedactedHex§jitterentropy_bs: u32§jitterentropy_bc: u32§jitterentropy_ml: u32§jitterentropy_ll: u32§jitterentropy_raw: bool§jitterentropy_entropy_per_1000_bytes: u32§lockup_detector_critical_section_threshold_ms: u64§lockup_detector_critical_section_fatal_threshold_ms: u64§lockup_detector_heartbeat_period_ms: u64§lockup_detector_heartbeat_age_threshold_ms: u64§lockup_detector_age_fatal_threshold_ms: u64§lockup_detector_diagnostic_query_timeout_ms: u64§oom_behavior: OomBehavior§oom_timeout_ms: u32§mexec_force_high_ramdisk: bool§oom_enabled: bool§oom_out_of_memory_threshold_mb: u64§oom_critical_threshold_mb: u64§oom_warning_threshold_mb: u64§oom_debounce_mb: u64§oom_evict_at_warning: bool§oom_evict_continuous: bool§oom_eviction_delay_ms: u64§oom_evict_with_min_target: bool§oom_eviction_delta_at_oom_mb: u64§oom_hysteresis_seconds: u64§oom_imminent_oom_delta_mb: u64§oom_trigger_on_alloc_failure: bool§phys_next: SmallString§phys_verbose: bool§phys_backtrace_max: u32§phys_print_stack_max: u32§ppb_borrow_on_mru: bool§ppb_loan: bool§ppb_replace_on_unloan: bool§render_dlog_to_crashlog: bool§serial: __BindgenOpaqueArray8<[u8; 24]>§always_use_next_vdso: bool§vdso_ticks_get_force_syscall: bool§vdso_clock_get_force_syscall: bool§userpager_overtime_wait_seconds: u64§userpager_overtime_timeout_seconds: u64§userpager_overtime_printout_limit: u32§enable_virtual_heap: bool§heap_max_size_mb: u64§heap_alloc_fill_threshold: u64§bufferchain_reserve_pages: u64§bypass_debuglog: bool§debug_uart_poll: bool§enable_debugging_syscalls: bool§enable_serial_syscalls: SerialDebugSyscalls§entropy_test_src: EntropyTestSource§entropy_test_len: u64§force_watchdog_disabled: bool§halt_on_panic: bool§ktrace_bufsize: u32§ktrace_grpmask: u32§memory_limit_dbg: bool§memory_limit_mb: u64§page_scanner_enable_eviction: bool§page_scanner_page_table_eviction_policy: PageTableEvictionPolicy§page_scanner_page_table_eviction_period_ms: u32§page_scanner_min_aging_interval_ms: u32§page_scanner_max_aging_interval_ms: u32§page_scanner_accessed_scan_interval_ms: u32§page_scanner_active_ratio_multiplier: u32§page_scanner_start_at_boot: bool§page_scanner_zero_page_scans_per_second: u64§lru_action: ScannerLruAction§random_debug_compress: bool§compression_strategy: CompressionStrategy§compression_storage_strategy: CompressionStorageStrategy§compression_threshold: u32§compression_lz4_acceleration: u32§compression_at_memory_pressure: bool§compression_reclaim_anonymous: bool§compression_reclaim_zero_forks: bool§pmm_checker_action: CheckFailAction§pmm_checker_enabled: CheckerEnable§pmm_checker_fill_size: __BindgenOpaqueArray8<[u8; 16]>§pmm_alloc_random_should_wait: bool§stack_canary_percent_free: u64§port_observer_reserve_pages: u64§port_packet_reserve_pages: u64§root_job_behavior: RootJobBehavior§root_job_notice: SmallString§shell: bool§shell_script: SmallString§smp_ht_enabled: bool§test_ram_reserve: __BindgenOpaqueArray8<[u8; 32]>§max_port_observers: u64§select: SmallString§userboot: SmallString§scheduler_prefer_little_cpus: bool§enable_new_wakeup_accounting: bool§ubsan_action: CheckFailAction§debug_boot_spin: bool§allow_debug_uart_suspend: bool§experimental_expand_memory_stall: bool§x86_disable_spec_mitigations: bool§x86_hwp: bool§x86_hwp_policy: IntelHwpPolicy§x86_md_clear_on_user_return: bool§x86_spec_store_bypass_disable: bool§x86_turbo: bool§x86_enable_pcid: bool§x86_smp_max_cpus: u32§x86_wallclock: WallclockType§test_uint32: u32§test_uint64: u64§test_bool: bool§test_smallstring: SmallString§test_enum: TestEnum§test_struct: TestStruct§test_redacted_hex: RedactedHex§test_auto_or_uint64: __BindgenOpaqueArray8<[u8; 16]>§smp_max_cpus: u32

Implementations§

Source§

impl BootOptions

Source

pub fn get() -> &'static Self

Trait Implementations§

Source§

impl Debug for BootOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for BootOptions

§

impl RefUnwindSafe for BootOptions

§

impl Send for BootOptions

§

impl Sync for BootOptions

§

impl Unpin for BootOptions

§

impl UnsafeUnpin for BootOptions

§

impl UnwindSafe for BootOptions

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.