package fscommon
import "github.com/opencontainers/runc/libcontainer/cgroups/fscommon"
Index ¶
- Variables
- func GetCgroupParamKeyValue(t string) (string, uint64, error)
- func GetCgroupParamString(cgroupPath, cgroupFile string) (string, error)
- func GetCgroupParamUint(cgroupPath, cgroupFile string) (uint64, error)
- func ParseUint(s string, base, bitSize int) (uint64, error)
- func ReadFile(dir, file string) (string, error)
- func WriteFile(dir, file, data string) error
Variables ¶
Functions ¶
func GetCgroupParamKeyValue ¶
Parses a cgroup param and returns as name, value
i.e. "io_service_bytes 1234" will return as io_service_bytes, 1234
func GetCgroupParamString ¶
Gets a string value from the specified cgroup file
func GetCgroupParamUint ¶
Gets a single uint64 value from the specified cgroup file.
func ParseUint ¶
Saturates negative values at zero and returns a uint64. Due to kernel bugs, some of the memory cgroup stats can be negative.
func ReadFile ¶
func WriteFile ¶
Source Files ¶
- Version
- v1.0.0-rc91
- Published
- Jun 30, 2020
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- 6 hours ago –
Tools for package owners.