system

package
v0.8.10 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsModule

func ContainsModule(key string, values []Module) bool

func ReadFileIntoLines

func ReadFileIntoLines(filename string) ([]string, error)

ReadFileIntoLines reads contents from a file and returns lines.

Types

type CmdlineArg

type CmdlineArg struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

func CmdlineArgs

func CmdlineArgs() ([]CmdlineArg, error)

CmdlineArgs returns all the kernel cmdline. It is read from cat /proc/cmdline.

func (CmdlineArg) String

func (d CmdlineArg) String() string

type Module

type Module struct {
	ModuleName  string `json:"moduleName"`
	Instances   uint64 `json:"instances"`
	Proprietary bool   `json:"proprietary"`
	OutOfTree   bool   `json:"outOfTree"`
	Unsigned    bool   `json:"unsigned"`
}

func Modules

func Modules() ([]Module, error)

Module returns all the kernel modules and their usage. It is read from cat /proc/modules.

func (Module) String

func (d Module) String() string

Jump to

Keyboard shortcuts

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