kubernetesk8s.io/kubernetes/pkg/util/io Index | Files

package io

import "k8s.io/kubernetes/pkg/util/io"

Index

Functions

func ConsistentRead

func ConsistentRead(filename string, attempts int) ([]byte, error)

ConsistentRead repeatedly reads a file until it gets the same content twice. This is useful when reading files in /proc that are larger than page size and kernel may modify them between individual read() syscalls.

Source Files

consistentread.go

Version
v1.12.7
Published
Mar 22, 2019
Platform
js/wasm
Imports
3 packages
Last checked
7 seconds ago

Tools for package owners.