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]

numa_balancing.

noexec.

noexec32.

skew_tick.

hpet_mmap.

vdso.

vdso32.

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.

CPUs isolated from the Linux scheduler.

Ordinarily should match isolcpus.

CPUs isolated from the Linux scheduler.

Ordinarily should match rcu_nocbs.

CPUs in the default IRQ affinity mask.

This should probably not be set.

nosmp.

Disables SMP support.

Rarely used in practice.

S/390 equivalent is nosmt.

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.

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.

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.

NUMA hashdist.

pci.

iommu.

intel_iommu.

numa_zonelist_order.

Deprecated according to Linux source code.

numa.

Returns setting and optional fake size or number.

  • numa=off
  • numa=noacpi
  • numa=fake=SIZE where size if suffixed with M or G
  • numa=fake=N where N is a number of fake NUMA nodes to create.

See https://www.kernel.org/doc/Documentation/x86/x86_64/boot-options.txt.

nopcid.

Rarely used in practice.

noinvpcid.

Rarely used in practice.

norandmaps.

Rarely used in practice.

noapic.

Note the confusion with acpi, which is something else entirely.

Rarely used in practice.

disableapic.

Rarely used in practice.

nolapic.

Rarely used in practice.

noapictimer.

Rarely used in practice.

nox2apic.

Note the confusion with acpi, which is something else entirely.

Rarely used in practice.

nopat.

Rarely used in practice.

noxsaveopt.

Rarely used in practice.

NUMA noaliencache.

Rarely used in practice.

NUMA movable_node.

Rarely used in practice.

nokaslr.

Rarely used in practice.

nospectre_v2.

Stupid command line option so that benchmarkers can game results and idiots 'apparently' increase performance.

Rarely used in practice.

spectre_v2.

nopti.

Stupid command line option so that benchmarkers can game results and idiots 'apparently' increase performance.

Rarely used in practice.

pti.

vsyscall.

nohugeiomap.

Disables Huge Pages for IO support.

Rarely used in practice.

notsc.

Disables Time Stamp Counter (TSC) support.

Rarely used in practice.

notsc.

Disables High Precision Event Timer (HPET) support.

Rarely used in practice.

panic in seconds.

Rarely used in practice.

Default locale.

Typically passed to init.

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").

default_hugepagesz.

hugepagesz.

hugepages.

Detects if SELinux is enabled or disabled.

Parses modules.

Returns a list of modules.

nomodeset.

quiet.

Single-user mode.

Single-user mode.

Not a kernel parameter, but passed through to init.

Kernel debugging is enabled.

Mount root file system read only, ro.

Mount root file system read write, rw.

gbpages.

initrd.

Returns eg initramfs-hardened.

init.

Returns eg /sbin/init.

rootfstype.

Returns eg ext4.

console.

Is this 'boolean' parameter present?

Panics if present with a value.

Gets the value of this parameter.

Panics if present without a value or if multiple values are present.

Gets the values of this parameter.

Trait Implementations

impl Default for LinuxKernelCommandLineParameters
[src]

Returns the "default value" for a type. Read more

impl Debug for LinuxKernelCommandLineParameters
[src]

Formats the value using the given formatter. Read more

impl Clone for LinuxKernelCommandLineParameters
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations