Skip to content

Commit b39afc6

Browse files
chore: link documentation to specific kernel version (#24)
Adds a version to the kernel doc links
1 parent 147dfe3 commit b39afc6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cgroup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const (
2323
const (
2424
// 0x63677270 (ascii for 'cgrp') is the magic number for identifying a cgroup v2
2525
// filesystem.
26-
// Ref: https://docs.kernel.org/admin-guide/cgroup-v2.html#mounting
26+
// Ref: https://docs.kernel.org/6.17/admin-guide/cgroup-v2.html#mounting
2727
cgroupV2MagicNumber = 0x63677270
2828
)
2929

cgroupv2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
// Paths for CgroupV2.
15-
// Ref: https://docs.kernel.org/admin-guide/cgroup-v2.html
15+
// Ref: https://docs.kernel.org/6.17/admin-guide/cgroup-v2.html
1616
const (
1717
// Contains quota and period in microseconds separated by a space.
1818
cgroupV2CPUMax = "cpu.max"
@@ -154,7 +154,7 @@ func (s cgroupV2Statter) memory(p Prefix) (*Result, error) {
154154
memoryUsagePath := filepath.Join(s.path, cgroupV2MemoryUsageBytes)
155155
memoryStatPath := filepath.Join(s.path, cgroupV2MemoryStat)
156156

157-
// https://docs.kernel.org/admin-guide/cgroup-v2.html#memory-interface-files
157+
// https://docs.kernel.org/6.17/admin-guide/cgroup-v2.html#memory-interface-files
158158
r := &Result{
159159
Unit: "B",
160160
Prefix: p,

0 commit comments

Comments
 (0)