kubernetes/pkg/kubelet/util/swap/swap_util.go

var tmpfsNoswapOptionSupported

var tmpfsNoswapOptionAvailabilityOnce

var swapOn

var swapOnErr

var swapOnOnce

const TmpfsNoswapOption

func IsTmpfsNoswapOptionSupported(mounter mount.Interface, mountPath string) bool {}

// gets /proc/swaps's content as an input, returns true if swap is enabled.
func isSwapOnAccordingToProcSwaps(procSwapsContent []byte) bool {}

// IsSwapOn detects whether swap in enabled on the system by inspecting
// /proc/swaps. If the file does not exist, an os.NotFound error will be returned.
// If running on windows, swap is assumed to always be false.
func IsSwapOn() (bool, error) {}