memory

package
v0.0.0-...-f6c2e69 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryDevice

type MemoryDevice struct {
	smbios.Header
	PhysicalMemoryArrayHandle  uint16
	ErrorInformationHandle     uint16
	TotalWidth                 uint16
	DataWidth                  uint16
	Size                       uint16
	FormFactor                 MemoryDeviceFormFactor
	DeviceSet                  byte
	DeviceLocator              string
	BankLocator                string
	Type                       MemoryDeviceType
	TypeDetail                 MemoryDeviceTypeDetail
	Speed                      uint16
	Manufacturer               string
	SerialNumber               string
	AssetTag                   string
	PartNumber                 string
	Attributes                 byte
	ExtendedSize               uint32
	ConfiguredMemoryClockSpeed uint16
	MinimumVoltage             uint16
	MaximumVoltage             uint16
	ConfiguredVoltage          uint16
}

MemoryDevice 内存设备

func ParseMemoryDevice

func ParseMemoryDevice(s *smbios.Structure) (info *MemoryDevice, err error)

ParseMemoryDevice 解析

func (MemoryDevice) String

func (m MemoryDevice) String() string

type MemoryDeviceFormFactor

type MemoryDeviceFormFactor byte
const (
	MemoryDeviceFormFactorOther MemoryDeviceFormFactor = 1 + iota
	MemoryDeviceFormFactorUnknown
	MemoryDeviceFormFactorSIMM
	MemoryDeviceFormFactorSIP
	MemoryDeviceFormFactorChip
	MemoryDeviceFormFactorDIP
	MemoryDeviceFormFactorZIP
	MemoryDeviceFormFactorProprietaryCard
	MemoryDeviceFormFactorDIMM
	MemoryDeviceFormFactorTSOP
	MemoryDeviceFormFactorRowofchips
	MemoryDeviceFormFactorRIMM
	MemoryDeviceFormFactorSODIMM
	MemoryDeviceFormFactorSRIMM
	MemoryDeviceFormFactorFB_DIMM
)

func (MemoryDeviceFormFactor) String

func (m MemoryDeviceFormFactor) String() string

type MemoryDeviceType

type MemoryDeviceType byte
const (
	MemoryDeviceTypeOther MemoryDeviceType = 1 + iota
	MemoryDeviceTypeUnknown
	MemoryDeviceTypeDRAM
	MemoryDeviceTypeEDRAM
	MemoryDeviceTypeVRAM
	MemoryDeviceTypeSRAM
	MemoryDeviceTypeRAM
	MemoryDeviceTypeROM
	MemoryDeviceTypeFLASH
	MemoryDeviceTypeEEPROM
	MemoryDeviceTypeFEPROM
	MemoryDeviceTypeEPROM
	MemoryDeviceTypeCDRAM
	MemoryDeviceType3DRAM
	MemoryDeviceTypeSDRAM
	MemoryDeviceTypeSGRAM
	MemoryDeviceTypeRDRAM
	MemoryDeviceTypeDDR
	MemoryDeviceTypeDDR2
	MemoryDeviceTypeDDR2FB_DIMM

	MemoryDeviceTypeDDR3
	MemoryDeviceTypeFBD2
	MemoryDeviceTypeDDR4
	MemoryDeviceTypeLPDDR
	MemoryDeviceTypeLPDDR2
	MemoryDeviceTypeLPDDR3
	MemoryDeviceTypeLPDDR4
)

func (MemoryDeviceType) String

func (m MemoryDeviceType) String() string

type MemoryDeviceTypeDetail

type MemoryDeviceTypeDetail uint16
const (
	MemoryDeviceTypeDetailReserved MemoryDeviceTypeDetail = 1 + iota
	MemoryDeviceTypeDetailOther
	MemoryDeviceTypeDetailUnknown
	MemoryDeviceTypeDetailFast_paged
	MemoryDeviceTypeDetailStaticcolumn
	MemoryDeviceTypeDetailPseudo_static
	MemoryDeviceTypeDetailRAMBUS
	MemoryDeviceTypeDetailSynchronous
	MemoryDeviceTypeDetailCMOS
	MemoryDeviceTypeDetailEDO
	MemoryDeviceTypeDetailWindowDRAM
	MemoryDeviceTypeDetailCacheDRAM
	MemoryDeviceTypeDetailNon_volatile
	MemoryDeviceTypeDetailRegisteredBuffered
	MemoryDeviceTypeDetailUnbufferedUnregistered
	MemoryDeviceTypeDetailLRDIMM
)

func (MemoryDeviceTypeDetail) String

func (m MemoryDeviceTypeDetail) String() string

type PhysicalMemoryArray

type PhysicalMemoryArray struct {
	smbios.Header
	Location                PhysicalMemoryArrayLocation        `json:"location,omitempty"`
	Use                     PhysicalMemoryArrayUse             `json:"use,omitempty"`
	ErrorCorrection         PhysicalMemoryArrayErrorCorrection `json:"error_correction,omitempty"`
	MaximumCapacity         uint32                             `json:"maximum_capacity,omitempty"`
	ErrorInformationHandle  uint16                             `json:"error_information_handle,omitempty"`
	NumberOfMemoryDevices   uint16                             `json:"number_of_memory_devices,omitempty"`
	ExtendedMaximumCapacity uint64                             `json:"extended_maximum_capacity,omitempty"`
}

PhysicalMemoryArray todo

func ParseMemoryArray

func ParseMemoryArray(s *smbios.Structure) (info *PhysicalMemoryArray, err error)

ParseMemoryArray todo

func (PhysicalMemoryArray) String

func (p PhysicalMemoryArray) String() string

type PhysicalMemoryArrayErrorCorrection

type PhysicalMemoryArrayErrorCorrection byte
const (
	PhysicalMemoryArrayErrorCorrectionOther PhysicalMemoryArrayErrorCorrection = 1 + iota
	PhysicalMemoryArrayErrorCorrectionUnknown
	PhysicalMemoryArrayErrorCorrectionNone
	PhysicalMemoryArrayErrorCorrectionParity
	PhysicalMemoryArrayErrorCorrectionSingle_bitECC
	PhysicalMemoryArrayErrorCorrectionMulti_bitECC
	PhysicalMemoryArrayErrorCorrectionCRC
)

func (PhysicalMemoryArrayErrorCorrection) String

type PhysicalMemoryArrayLocation

type PhysicalMemoryArrayLocation byte
const (
	PhysicalMemoryArrayLocationOther PhysicalMemoryArrayLocation = 1 + iota
	PhysicalMemoryArrayLocationUnknown
	PhysicalMemoryArrayLocationSystemboardormotherboard
	PhysicalMemoryArrayLocationISAadd_oncard
	PhysicalMemoryArrayLocationEISAadd_oncard
	PhysicalMemoryArrayLocationPCIadd_oncard
	PhysicalMemoryArrayLocationMCAadd_oncard
	PhysicalMemoryArrayLocationPCMCIAadd_oncard
	PhysicalMemoryArrayLocationProprietaryadd_oncard
	PhysicalMemoryArrayLocationNuBus
	PhysicalMemoryArrayLocationPC_98C20add_oncard
	PhysicalMemoryArrayLocationPC_98C24add_oncard
	PhysicalMemoryArrayLocationPC_98Eadd_oncard
	PhysicalMemoryArrayLocationPC_98Localbusadd_oncard
)

func (PhysicalMemoryArrayLocation) String

type PhysicalMemoryArrayUse

type PhysicalMemoryArrayUse byte
const (
	PhysicalMemoryArrayUseOther PhysicalMemoryArrayUse = 1 + iota
	PhysicalMemoryArrayUseUnknown
	PhysicalMemoryArrayUseSystemmemory
	PhysicalMemoryArrayUseVideomemory
	PhysicalMemoryArrayUseFlashmemory
	PhysicalMemoryArrayUseNon_volatileRAM
	PhysicalMemoryArrayUseCachememory
)

func (PhysicalMemoryArrayUse) String

func (p PhysicalMemoryArrayUse) String() string

Jump to

Keyboard shortcuts

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