pci

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsModuleLoaded

func IsModuleLoaded(searchedModule string) bool

IsModuleLoaded tells whether given kernel module is loaded or not.

func LoadModule

func LoadModule(module string) error

LoadModule loads a kernel module (via modprobe).

func UnloadModule

func UnloadModule(module string) error

UnloadModule unloads a kernel module (via rmmod).

Types

type PCILister

type PCILister struct{}

PCILister is the object responsible for discovering initial pool of devices and their allocation.

func (PCILister) Discover

func (pci PCILister) Discover(pluginListCh chan dpm.PluginNameList)

Discover discovers all PCI devices within the system.

func (PCILister) GetResourceNamespace

func (pci PCILister) GetResourceNamespace() string

func (PCILister) NewPlugin

func (pci PCILister) NewPlugin(vendorID string) dpm.PluginInterface

NewPlugin creates a device plugin for specific deviceID, using deviceIDs as initial device "pool".

type VFIODevicePlugin

type VFIODevicePlugin struct {
	// contains filtered or unexported fields
}

VFIODevicePlugin represents device plugin implementation with VFIO specific attributes.

func (*VFIODevicePlugin) Allocate

Allocate allocates a set of devices to be used by container runtime environment.

func (*VFIODevicePlugin) ListAndWatch

ListAndWatch lists devices.

Jump to

Keyboard shortcuts

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