address

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 2 Imported by: 1

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 Address from an address string in either $BUS:$DEVICE.$FUNCTION (BDF) format or a full PCI address that includes the domain: $DOMAIN:$BUS:$DEVICE.$FUNCTION.

If the address string isn't a valid PCI address, then nil is returned.

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