address

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Domain   string
	Bus      string
	Device   string
	Function string
}

Address contains the components of a PCI Address

func FromString

func FromString(address string) *Address

FromString returns an Address struct from an ddress string in either $BUS:$DEVICE.$FUNCTION (BDF) format or it can be a full PCI address that includes the 4-digit $DOMAIN information as well: $DOMAIN:$BUS:$DEVICE.$FUNCTION.

Returns "" if the address string wasn't a valid PCI address.

func (*Address) String

func (addr *Address) String() string

String() returns the canonical [D]BDF representation of this Address

Jump to

Keyboard shortcuts

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