Package cmdline is parser for kernel command-line args from /proc/cmdline.
It's conformant with https://www.kernel.org/doc/html/v4.14/admin-guide/kernel-parameters.html, though making 'var_name' and 'var-name' equivalent may need to be done separately.
ContainsFlag verifies that the kernel cmdline has a flag set
Flag returns the a flag, and whether it was set
FlagsForModule gets all flags for a designated module and returns them as a space-seperated string designed to be passed to insmod Note that similarly to flags, module names with - and _ are treated the same.
FullCmdLine returns the full, raw cmdline string
GetInitFlagMap gets the init flags as a map
GetUinitArgs gets the uinit argvs.
CmdLine lets people view the raw & parsed /proc/cmdline in one place
NewCmdLine returns a populated CmdLine struct
Filter represents and kernel commandline filter
NewUpdateFilter return a kernel command line Filter that: removes variables listed in 'removeVar', append extra parameters from the 'appendCmd' and append variables listed in 'reuseVar' using the value from the running kernel