amdregisters

package
v2.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRegister

func GetRegister[R registers.Register](s *types.State, out *R) error

GetRegister sets to `out` the value of the register (which is defined by its type).

func With

func With(state *types.State, callback func(*AMDRegisters) error) error

With executes the callback if AMD registers collection is set.

Types

type AMDRegisters

type AMDRegisters struct {
	registers.Registers
}

AMDRegisters is the collection of Intel TXT registers.

func Get

func Get(state *types.State) (*AMDRegisters, error)

Get returns the collection of AMD registers.

func New

New collects TXT registers and returns them as a SystemArtifact.

func (AMDRegisters) ReadAt

func (rs AMDRegisters) ReadAt(p []byte, offset int64) (n int, err error)

ReadAt implements types.SystemArtifact.

func (AMDRegisters) Size

func (rs AMDRegisters) Size() uint64

Size implements types.SystemArtifact.

Jump to

Keyboard shortcuts

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