kernel

package
v0.5.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params map[string][]string

Params represent the parameters passed to the kernel at boot

func GetParams

func GetParams() Params

GetParams Get kernel cmdline arguments

func (Params) Exists

func (k Params) Exists(key string) bool

Exists checks if a key is present in the kernel parameters

func (Params) Get

func (k Params) Get(key string) ([]string, bool)

Get returns the values link to a key and a boolean boolean if true when the key exists in the params or false otherwise a nil list, and a true will be returned if the `key` is set in kernel params, but with no associated value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL