type32

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package type32 implements SMBIOS Type 32 - System Boot Information Per DSP0134 SMBIOS Reference Specification 3.9.0

Index

Constants

View Source
const StructureType uint8 = 32

StructureType is the SMBIOS structure type for System Boot Information

Variables

This section is empty.

Functions

This section is empty.

Types

type BootInfo

type BootInfo struct {
	Header     gosmbios.Header
	Reserved   [6]byte
	BootStatus BootStatus
}

BootInfo represents Type 32 - System Boot Information

func Get

func Get(sm *gosmbios.SMBIOS) (*BootInfo, error)

Get retrieves the System Boot Information from SMBIOS data

func Parse

func Parse(s *gosmbios.Structure) (*BootInfo, error)

Parse parses a System Boot Information structure from raw SMBIOS data

type BootStatus

type BootStatus uint8

BootStatus represents the system boot status

const (
	BootStatusNoErrors                 BootStatus = 0
	BootStatusNoBootableMedia          BootStatus = 1
	BootStatusNormalOSLoadFailed       BootStatus = 2
	BootStatusFirmwareHardwareFailure  BootStatus = 3
	BootStatusOSHardwareFailure        BootStatus = 4
	BootStatusUserRequestedBoot        BootStatus = 5
	BootStatusSecurityViolation        BootStatus = 6
	BootStatusPreviouslyRequestedImage BootStatus = 7
	BootStatusWatchdogTimerExpired     BootStatus = 8
)

Boot status values

func (BootStatus) IsFailure

func (bs BootStatus) IsFailure() bool

IsFailure returns true if the boot failed

func (BootStatus) IsSuccess

func (bs BootStatus) IsSuccess() bool

IsSuccess returns true if the boot was successful

func (BootStatus) String

func (bs BootStatus) String() string

String returns a human-readable boot status description

Jump to

Keyboard shortcuts

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