github.com/jaypipes/ghw@v0.21.1/pkg/pci/pci_stub.go (about) 1 //go:build !linux 2 // +build !linux 3 4 // Use and distribution licensed under the Apache license version 2. 5 // 6 // See the COPYING file in the root project directory for full text. 7 // 8 9 package pci 10 11 import ( 12 "runtime" 13 14 "github.com/pkg/errors" 15 ) 16 17 func (i *Info) load() error { 18 return errors.New("pciFillInfo not implemented on " + runtime.GOOS) 19 } 20 21 // GetDevice returns a pointer to a Device struct that describes the PCI 22 // device at the requested address. If no such device could be found, returns 23 // nil 24 func (info *Info) GetDevice(address string) *Device { 25 return nil 26 } 27 28 // ListDevices returns a list of pointers to Device structs present on the 29 // host system 30 func (info *Info) ListDevices() []*Device { 31 return nil 32 }