moby--moby/pkg/sysinfo
Tobias Klauser ba8a15694a Use functions from x/sys/unix to get number of CPUs on Linux
Use Getpid and SchedGetaffinity from golang.org/x/sys/unix to get the
number of CPUs in numCPU on Linux.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2019-06-18 19:26:56 +02:00
..
README.md
numcpu.go
numcpu_linux.go Use functions from x/sys/unix to get number of CPUs on Linux 2019-06-18 19:26:56 +02:00
numcpu_windows.go Use functions from x/sys/unix to get number of CPUs on Linux 2019-06-18 19:26:56 +02:00
sysinfo.go Use functions from x/sys/unix to get number of CPUs on Linux 2019-06-18 19:26:56 +02:00
sysinfo_linux.go
sysinfo_linux_test.go
sysinfo_test.go
sysinfo_unix.go
sysinfo_windows.go

README.md

SysInfo stores information about which features a kernel supports.