kernel

package
v0.12.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteParam

func DeleteParam(prop *Param) error

DeleteParam deletes a value from a key under /proc/sys.

func ReadParam

func ReadParam(prop *Param) ([]byte, error)

ReadParam reads a value from a key under /proc/sys.

func WriteParam

func WriteParam(prop *Param) error

WriteParam writes a value to a key under /proc/sys.

Types

type Param

type Param struct {
	Key   string
	Value string
}

Param represents a kernel system property.

func (*Param) Path

func (prop *Param) Path() string

Path returns the path to the systctl file under /proc/sys.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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