MCPcopy
hub / github.com/jaypipes/ghw / getDeviceModaliasPath

Function getDeviceModaliasPath

pkg/pci/pci_linux.go:44–50  ·  view source on GitHub ↗
(paths *linuxpath.Paths, pciAddr *pciaddr.Address)

Source from the content-addressed store, hash-verified

42}
43
44func getDeviceModaliasPath(paths *linuxpath.Paths, pciAddr *pciaddr.Address) string {
45 return filepath.Join(
46 paths.SysBusPciDevices,
47 pciAddr.String(),
48 "modalias",
49 )
50}
51
52func getDeviceRevision(paths *linuxpath.Paths, pciAddr *pciaddr.Address) string {
53 revisionPath := filepath.Join(

Callers 1

getDevicesMethod · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…