pci

package
v0.0.0-...-66fe49a Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 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 DeviceStruct

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

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) GetDevicePluginOptions

GetDevicePluginOptions returns options to be communicated with Device Manager

func (*VFIODevicePlugin) ListAndWatch

ListAndWatch lists devices.

func (VFIODevicePlugin) PreStartContainer

PreStartContainer is called, if indicated by Device Plugin during registeration phase, before each container start. Device plugin can run device specific operations such as reseting the device before making devices available to the container

Jump to

Keyboard shortcuts

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