MCPcopy Create free account
hub / github.com/prometheus/procfs / readSysfsFile

Function readSysfsFile

bcachefs/get.go:469–475  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

467}
468
469func readSysfsFile(path string) string {
470 data, err := util.ReadFileNoStat(path)
471 if err != nil {
472 return ""
473 }
474 return strings.TrimSpace(string(data))
475}
476
477func readUintFile(path string) (uint64, error) {
478 data, err := util.ReadFileNoStat(path)

Callers 1

parseDevicesFunction · 0.85

Calls 1

ReadFileNoStatFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…