cpu

package
v1.0.0-beta.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Info

func Info() ([]types.CpuInfo, error)

func InfoFromRawData

func InfoFromRawData(procCpuInfoData string, uname string) ([]types.CpuInfo, error)

Types

type ProcCpuInfo

type ProcCpuInfo struct {
	Processor    int64 // %d - kernel defines it as long long
	Architecture string

	// amd64
	ManufacturerId string
	BrandString    string
	Flags          []string

	// arm64
	ModelName     *string  // %s
	BogoMips      float64  // %lu.%02lu
	Features      []string // space separated strings
	ImplementerId uint64   // 0x%02x
	//Architecture  uint64   // constant int
	Variant    uint64 // 0x%x
	PartNumber uint64 // 0x%03x
	Revision   uint64 // %d
}

ProcCpuInfo contains general information about a system CPU found in /proc/cpuinfo.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL