sysctl

package
v2.3.8 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(sysctl Sysctl) (int, error)

Get returns the value for the specified sysctl setting

func GetModule

func GetModule(module Module) (int, error)

GetModule returns the value for the specified Module setting

func Set

func Set(sysctl Sysctl, newVal int) error

Set modifies the specified sysctl flag to the new value

func SetModule

func SetModule(module Module, newVal int) error

SetModule modifies the specified module flag to the new value

func Tune

func Tune(log *slog.Logger) error

Types

type Module

type Module string

type Sysctl

type Sysctl string

Jump to

Keyboard shortcuts

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