cndev

package
v0.0.0-...-c3af27a Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeviceCount

func GetDeviceCount() (uint, error)

func GetDeviceMemory

func GetDeviceMemory(idx uint) (uint, error)

func GetDeviceModel

func GetDeviceModel(idx uint) string

func GetMLULinkGroups

func GetMLULinkGroups() ([][]uint, error)

func Init

func Init() error

func Release

func Release() error

Types

type Device

type Device struct {
	Slot        uint
	UUID        string
	SN          string
	Path        string
	MotherBoard string
	// contains filtered or unexported fields
}

func NewDeviceLite

func NewDeviceLite(idx uint, pcieAware bool) (*Device, error)

func (*Device) EnableSriov

func (d *Device) EnableSriov(num int) error

func (*Device) GetGeviceHealthState

func (d *Device) GetGeviceHealthState(delayTime int) (int, error)

func (*Device) GetPCIeID

func (d *Device) GetPCIeID() (string, error)

func (*Device) ValidateSriovNum

func (d *Device) ValidateSriovNum(num int) error

Jump to

Keyboard shortcuts

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