func isIoSet(r *configs.Resources) bool { … } // bfqDeviceWeightSupported checks for per-device BFQ weight support (added // in kernel v5.4, commit 795fe54c2a8) by reading from "io.bfq.weight". func bfqDeviceWeightSupported(bfq *os.File) bool { … } func setIo(dirPath string, r *configs.Resources) error { … } func readCgroup2MapFile(dirPath string, name string) (map[string][]string, error) { … } func statIo(dirPath string, stats *cgroups.Stats) error { … }