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

Function sysctlToPath

proc_sys.go:23–25  ·  view source on GitHub ↗
(sysctl string)

Source from the content-addressed store, hash-verified

21)
22
23func sysctlToPath(sysctl string) string {
24 return strings.ReplaceAll(sysctl, ".", "/")
25}
26
27func (fs FS) SysctlStrings(sysctl string) ([]string, error) {
28 value, err := parsers.SysReadFile(fs.proc.Path("sys", sysctlToPath(sysctl)))

Callers 1

SysctlStringsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected