cpu

package module
v0.0.0-...-2c030c4 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package cpu provides a reference of CPU architectures and identification keys for known CPUS.

  • Copyright (C) 2023 Intel Corporation
  • SPDX-License-Identifier: MIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPU

type CPU struct {
	// contains filtered or unexported fields
}

func NewCPU

func NewCPU() (cpu *CPU, err error)

func (*CPU) GetMemoryChannels

func (c *CPU) GetMemoryChannels(microarchitecture string) (channels int, err error)

func (*CPU) GetMicroArchitecture

func (c *CPU) GetMicroArchitecture(family, model, stepping, sockets, capid4, devices string) (uarch string, err error)

type CPUInfo

type CPUInfo struct {
	Architecture string `yaml:"architecture"`
	Family       string `yaml:"family"`
	Model        string `yaml:"model"`
	Stepping     string `yaml:"stepping"`
	Channels     int    `yaml:"channels"`
}

Jump to

Keyboard shortcuts

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