kubernetes/staging/src/k8s.io/component-helpers/node/util/sysctl/sysctl.go

const sysctlBase

const VMOvercommitMemory

const VMPanicOnOOM

const KernelPanic

const KernelPanicOnOops

const RootMaxKeys

const RootMaxBytes

const VMOvercommitMemoryAlways

const VMPanicOnOOMInvokeOOMKiller

const KernelPanicOnOopsAlways

const KernelPanicRebootTimeout

const RootMaxKeysSetting

const RootMaxBytesSetting

type Interface

// New returns a new Interface for accessing sysctl
func New() Interface {}

type procSysctl

// GetSysctl returns the value for the specified sysctl setting
func (*procSysctl) GetSysctl(sysctl string) (int, error) {}

// SetSysctl modifies the specified sysctl flag to the new value
func (*procSysctl) SetSysctl(sysctl string, newVal int) error {}

// NormalizeName can return sysctl variables in dots separator format.
// The '/' separator is also accepted in place of a '.'.
// Convert the sysctl variables to dots separator format for validation.
// More info:
//
//	https://man7.org/linux/man-pages/man8/sysctl.8.html
//	https://man7.org/linux/man-pages/man5/sysctl.d.5.html
func NormalizeName(val string) string {}