package sysctl

import "github.com/containernetworking/plugins/pkg/utils/sysctl"

Index

Functions

func Sysctl

func Sysctl(name string, params ...string) (string, error)

Sysctl provides a method to set/get values from /proc/sys - in linux systems new interface to set/get values of variables formerly handled by sysctl syscall If optional `params` have only one string value - this function will set this value into corresponding sysctl variable

Source Files

sysctl_linux.go

Version
v1.7.1 (latest)
Published
Apr 25, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
7 hours ago

Tools for package owners.