Struct dpdk_unix::android_linux::LinuxKernelCommandLineParameters [−][src]
pub struct LinuxKernelCommandLineParameters(_);
Linux kernel command line parameters.
Some of these are interpreted as environment variables set just as init is executed (typically in upper case, eg TERM=vt100). Others are not claimed by the kernel, but by init, eg single.
A very small number can occur more than once, eg console.
See https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html and https://www.kernel.org/doc/Documentation/x86/x86_64/boot-options.txt.
Methods
impl LinuxKernelCommandLineParameters[src]
impl LinuxKernelCommandLineParameterspub fn numa_balancing(&self) -> Option<bool>[src]
pub fn numa_balancing(&self) -> Option<bool>numa_balancing.
pub fn noexec(&self) -> Option<bool>[src]
pub fn noexec(&self) -> Option<bool>noexec.
pub fn noexec32(&self) -> Option<bool>[src]
pub fn noexec32(&self) -> Option<bool>noexec32.
pub fn skew_tick(&self) -> Option<bool>[src]
pub fn skew_tick(&self) -> Option<bool>skew_tick.
pub fn hpet_mmap(&self) -> Option<bool>[src]
pub fn hpet_mmap(&self) -> Option<bool>hpet_mmap.
pub fn vdso(&self) -> Option<bool>[src]
pub fn vdso(&self) -> Option<bool>vdso.
pub fn vdso32(&self) -> Option<bool>[src]
pub fn vdso32(&self) -> Option<bool>vdso32.
pub fn isolcpus(&self) -> Option<(HashSet<&str>, BTreeSet<u16>)>[src]
pub fn isolcpus(&self) -> Option<(HashSet<&str>, BTreeSet<u16>)>CPUs isolated from the Linux scheduler.
eg "0-9,10-20:2/5" and "nohz,domain,0-9,10-20:2/5". Note in the latter example there isn't a separate delimiter separating the flags from the list, so one either has to be know all possible flags (unlikely and subject to change) or have some trully revolting parsing code, which is what we do below (Self::split_flags_and_cpu_list). For extra brownie points the Linux kernel treats the values as ASCII not UTF-8.
pub fn rcu_nocbs(&self) -> Option<BTreeSet<u16>>[src]
pub fn rcu_nocbs(&self) -> Option<BTreeSet<u16>>CPUs isolated from the Linux scheduler.
Ordinarily should match isolcpus.
pub fn nohz_full(&self) -> Option<BTreeSet<u16>>[src]
pub fn nohz_full(&self) -> Option<BTreeSet<u16>>CPUs isolated from the Linux scheduler.
Ordinarily should match rcu_nocbs.
pub fn irqaffinity(&self) -> Option<BTreeSet<u16>>[src]
pub fn irqaffinity(&self) -> Option<BTreeSet<u16>>CPUs in the default IRQ affinity mask.
This should probably not be set.
pub fn nosmp(&self) -> bool[src]
pub fn nosmp(&self) -> boolnosmp.
Disables SMP support.
Rarely used in practice.
S/390 equivalent is nosmt.
pub fn maxcpus(&self) -> Option<u16>[src]
pub fn maxcpus(&self) -> Option<u16>maxcpus.
Limits the Linux kernel to making only this number of CPUs online at boot-time; CPUs can be brought online later.
May also be 0 (zero) in which case it behaves the same as nosmp.
Rarely used in practice.
S/390 equivalent is smt (altohugh the zero value is not supported in this case).
See https://www.kernel.org/doc/Documentation/core-api/cpu_hotplug.rst.
pub fn nr_cpus(&self) -> Option<u16>[src]
pub fn nr_cpus(&self) -> Option<u16>nr_cpus.
Limits the Linux kernel to a maximum of this number of CPUs (expressed as HyperThread::kernel_maximum_cpu() + 1).
Rarely used in practice, except to increase a compile time limit.
See https://www.kernel.org/doc/Documentation/core-api/cpu_hotplug.rst.
pub fn possible_cpus(&self) -> Option<u16>[src]
pub fn possible_cpus(&self) -> Option<u16>possible_cpus.
Limits the Linux kernel to a maximum of this number of CPUs (see HyperThread::possible()).
Rarely used in practice.
See https://www.kernel.org/doc/Documentation/core-api/cpu_hotplug.rst.
pub fn hashdist(&self) -> Option<bool>[src]
pub fn hashdist(&self) -> Option<bool>NUMA hashdist.
pub fn pci(&self) -> Option<HashSet<&str>>[src]
pub fn pci(&self) -> Option<HashSet<&str>>pci.
pub fn iommu(&self) -> Option<&str>[src]
pub fn iommu(&self) -> Option<&str>iommu.
pub fn intel_iommu(&self) -> Option<&str>[src]
pub fn intel_iommu(&self) -> Option<&str>intel_iommu.
pub fn numa_zonelist_order(&self) -> Option<&str>[src]
pub fn numa_zonelist_order(&self) -> Option<&str>numa_zonelist_order.
Deprecated according to Linux source code.
pub fn numa(&self) -> Option<(&str, Option<&str>)>[src]
pub fn numa(&self) -> Option<(&str, Option<&str>)>numa.
Returns setting and optional fake size or number.
numa=offnuma=noacpinuma=fake=SIZEwhere size if suffixed withMorGnuma=fake=NwhereNis a number of fake NUMA nodes to create.
See https://www.kernel.org/doc/Documentation/x86/x86_64/boot-options.txt.
pub fn idle(&self) -> Option<&str>[src]
pub fn idle(&self) -> Option<&str>pub fn nopcid(&self) -> bool[src]
pub fn nopcid(&self) -> boolnopcid.
Rarely used in practice.
pub fn noinvpcid(&self) -> bool[src]
pub fn noinvpcid(&self) -> boolnoinvpcid.
Rarely used in practice.
pub fn norandmaps(&self) -> bool[src]
pub fn norandmaps(&self) -> boolnorandmaps.
Rarely used in practice.
pub fn noapic(&self) -> bool[src]
pub fn noapic(&self) -> boolnoapic.
Note the confusion with acpi, which is something else entirely.
Rarely used in practice.
pub fn disableapic(&self) -> bool[src]
pub fn disableapic(&self) -> booldisableapic.
Rarely used in practice.
pub fn nolapic(&self) -> bool[src]
pub fn nolapic(&self) -> boolnolapic.
Rarely used in practice.
pub fn noapictimer(&self) -> bool[src]
pub fn noapictimer(&self) -> boolnoapictimer.
Rarely used in practice.
pub fn nox2apic(&self) -> bool[src]
pub fn nox2apic(&self) -> boolnox2apic.
Note the confusion with acpi, which is something else entirely.
Rarely used in practice.
pub fn nopat(&self) -> bool[src]
pub fn nopat(&self) -> boolnopat.
Rarely used in practice.
pub fn noxsaveopt(&self) -> bool[src]
pub fn noxsaveopt(&self) -> boolnoxsaveopt.
Rarely used in practice.
pub fn noaliencache(&self) -> bool[src]
pub fn noaliencache(&self) -> boolNUMA noaliencache.
Rarely used in practice.
pub fn movable_node(&self) -> bool[src]
pub fn movable_node(&self) -> boolNUMA movable_node.
Rarely used in practice.
pub fn nokaslr(&self) -> bool[src]
pub fn nokaslr(&self) -> boolnokaslr.
Rarely used in practice.
pub fn nospectre_v2(&self) -> bool[src]
pub fn nospectre_v2(&self) -> boolnospectre_v2.
Stupid command line option so that benchmarkers can game results and idiots 'apparently' increase performance.
Rarely used in practice.
pub fn spectre_v2(&self) -> Option<&str>[src]
pub fn spectre_v2(&self) -> Option<&str>spectre_v2.
pub fn nopti(&self) -> bool[src]
pub fn nopti(&self) -> boolnopti.
Stupid command line option so that benchmarkers can game results and idiots 'apparently' increase performance.
Rarely used in practice.
pub fn pti(&self) -> Option<&str>[src]
pub fn pti(&self) -> Option<&str>pti.
pub fn vsyscall(&self) -> Option<&str>[src]
pub fn vsyscall(&self) -> Option<&str>vsyscall.
pub fn nohugeiomap(&self) -> bool[src]
pub fn nohugeiomap(&self) -> boolnohugeiomap.
Disables Huge Pages for IO support.
Rarely used in practice.
pub fn notsc(&self) -> bool[src]
pub fn notsc(&self) -> boolnotsc.
Disables Time Stamp Counter (TSC) support.
Rarely used in practice.
pub fn nohpet(&self) -> bool[src]
pub fn nohpet(&self) -> boolnotsc.
Disables High Precision Event Timer (HPET) support.
Rarely used in practice.
pub fn panic(&self) -> Option<i64>[src]
pub fn panic(&self) -> Option<i64>panic in seconds.
Rarely used in practice.
pub fn locale(&self) -> Option<&str>[src]
pub fn locale(&self) -> Option<&str>Default locale.
Typically passed to init.
pub fn root(&self) -> Option<(Option<&str>, &str)>[src]
pub fn root(&self) -> Option<(Option<&str>, &str)>Parses root:-
- If it is of the form
root=/dev/sda, returns(None, "/dev/sda"). - If it is of the form
root=UUID=59ca0b21-9bf6-4ccc-a06b-fdecc91bf2aa, returns(Some("UUID"), "59ca0b21-9bf6-4ccc-a06b-fdecc91bf2aa").
pub fn default_hugepagesz(&self) -> Option<&str>[src]
pub fn default_hugepagesz(&self) -> Option<&str>default_hugepagesz.
pub fn hugepagesz(&self) -> Option<Vec<&str>>[src]
pub fn hugepagesz(&self) -> Option<Vec<&str>>hugepagesz.
pub fn hugepages(&self) -> Option<Vec<&str>>[src]
pub fn hugepages(&self) -> Option<Vec<&str>>hugepages.
pub fn selinux(&self) -> Option<bool>[src]
pub fn selinux(&self) -> Option<bool>Detects if SELinux is enabled or disabled.
pub fn modules(&self) -> Option<Vec<&str>>[src]
pub fn modules(&self) -> Option<Vec<&str>>Parses modules.
Returns a list of modules.
pub fn nomodeset(&self) -> bool[src]
pub fn nomodeset(&self) -> boolnomodeset.
pub fn quiet(&self) -> bool[src]
pub fn quiet(&self) -> boolquiet.
pub fn S(&self) -> bool[src]
pub fn S(&self) -> boolSingle-user mode.
pub fn single(&self) -> bool[src]
pub fn single(&self) -> boolSingle-user mode.
Not a kernel parameter, but passed through to init.
pub fn debug(&self) -> bool[src]
pub fn debug(&self) -> boolKernel debugging is enabled.
pub fn ro(&self) -> bool[src]
pub fn ro(&self) -> boolMount root file system read only, ro.
pub fn rw(&self) -> bool[src]
pub fn rw(&self) -> boolMount root file system read write, rw.
pub fn nogbpages(&self) -> bool[src]
pub fn nogbpages(&self) -> boolpub fn gbpages(&self) -> bool[src]
pub fn gbpages(&self) -> boolgbpages.
pub fn initrd(&self) -> Option<&str>[src]
pub fn initrd(&self) -> Option<&str>initrd.
Returns eg initramfs-hardened.
pub fn init(&self) -> Option<PathBuf>[src]
pub fn init(&self) -> Option<PathBuf>init.
Returns eg /sbin/init.
pub fn rootfstype(&self) -> Option<FileSystemType>[src]
pub fn rootfstype(&self) -> Option<FileSystemType>rootfstype.
Returns eg ext4.
pub fn console(&self) -> Option<Vec<&str>>[src]
pub fn console(&self) -> Option<Vec<&str>>console.
pub fn is_present_with_no_value<'a>(&self, parameter_name: &'a str) -> bool[src]
pub fn is_present_with_no_value<'a>(&self, parameter_name: &'a str) -> boolIs this 'boolean' parameter present?
Panics if present with a value.
pub fn get_value<'a>(&self, parameter_name: &'a str) -> Option<&str>[src]
pub fn get_value<'a>(&self, parameter_name: &'a str) -> Option<&str>Gets the value of this parameter.
Panics if present without a value or if multiple values are present.
pub fn get_values<'a>(&self, parameter_name: &'a str) -> Option<Vec<&str>>[src]
pub fn get_values<'a>(&self, parameter_name: &'a str) -> Option<Vec<&str>>Gets the values of this parameter.
Trait Implementations
impl Default for LinuxKernelCommandLineParameters[src]
impl Default for LinuxKernelCommandLineParametersfn default() -> LinuxKernelCommandLineParameters[src]
fn default() -> LinuxKernelCommandLineParametersReturns the "default value" for a type. Read more
impl Debug for LinuxKernelCommandLineParameters[src]
impl Debug for LinuxKernelCommandLineParametersfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for LinuxKernelCommandLineParameters[src]
impl Clone for LinuxKernelCommandLineParametersfn clone(&self) -> LinuxKernelCommandLineParameters[src]
fn clone(&self) -> LinuxKernelCommandLineParametersReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
Auto Trait Implementations
impl Send for LinuxKernelCommandLineParameters
impl Send for LinuxKernelCommandLineParametersimpl Sync for LinuxKernelCommandLineParameters
impl Sync for LinuxKernelCommandLineParameters