☰
Debian Codegraph
@
0.22.0+ds1-1
0.21.0+ds1-1
/
/
cpu_other.go
☽
☼
cpu_other.go
code
plain
raw
symbols
SCIP
Expat
2017 Nathan Sweet; 2018-2019 Cloudflare; 2019 Cilium
debian/copyright
1
//go:build !windows
2
3
package
ebpf
4
5
import
(
6
"sync"
7
8
"github.com/cilium/ebpf/internal/linux"
9
)
10
11
var
possibleCPU = sync.
OnceValues
(
func
() (
int
,
error
) {
12
return
linux.
ParseCPUsFromFile
(
"/sys/devices/system/cpu/possible"
)
13
})