package sysctl

import "github.com/containernetworking/cni/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
v0.5.0-rc1
Published
Mar 2, 2017
Platform
linux/amd64
Imports
4 packages
Last checked
1 week ago

Tools for package owners.