Documentation ¶
Index ¶
- Constants
- Variables
- func CheckVirtualNumber(dev *isolated_device.ContainerDevice) error
- type BaseDevice
- func (c BaseDevice) CustomProbe(idx int) error
- func (b BaseDevice) GetCPUCmd() string
- func (c BaseDevice) GetDevicePath() string
- func (c BaseDevice) GetNumaNode() (int, error)
- func (c BaseDevice) GetNvidiaMpsMemoryLimit() int
- func (c BaseDevice) GetNvidiaMpsMemoryTotal() int
- func (c BaseDevice) GetNvidiaMpsThreadPercentage() int
- func (b BaseDevice) GetQemuId() string
- func (b BaseDevice) GetVGACmd() string
- type NVMEListResult
- type NetintDeviceInfo
Constants ¶
View Source
const ( CPH_AOSP_BINDER_CONTROL_DEV_PATH = "/dev/binder-control" CPH_AOSP_BINDER_MODEL_NAME = "CPH AOSP BINDER" CPH_AOSP_VENDOR_ID = "0000" CPH_AOSP_DEVICE_ID = "0000" )
View Source
const ( NETINT_VENDOR_ID = "0000" NETINT_DEVICE_ID = "0000" )
View Source
const ( VASTAITECH_VA_CTL = "va_ctl" VASTAITECH_VA_VIDEO = "va_video" VASTAITECH_VACC = "vacc" )
Variables ¶
View Source
var ( NetintCAASICReg = regexp.MustCompile("T4\\d\\d-.*") NetintCAQuadraReg = regexp.MustCompile("Quadra.*") )
Functions ¶
func CheckVirtualNumber ¶
func CheckVirtualNumber(dev *isolated_device.ContainerDevice) error
Types ¶
type BaseDevice ¶
type BaseDevice struct { *isolated_device.SBaseDevice Path string }
func NewBaseDevice ¶
func NewBaseDevice(dev *isolated_device.PCIDevice, devType isolated_device.ContainerDeviceType, devPath string) *BaseDevice
func (BaseDevice) CustomProbe ¶
func (c BaseDevice) CustomProbe(idx int) error
func (BaseDevice) GetCPUCmd ¶
func (b BaseDevice) GetCPUCmd() string
func (BaseDevice) GetDevicePath ¶
func (c BaseDevice) GetDevicePath() string
func (BaseDevice) GetNumaNode ¶
func (c BaseDevice) GetNumaNode() (int, error)
func (BaseDevice) GetNvidiaMpsMemoryLimit ¶
func (c BaseDevice) GetNvidiaMpsMemoryLimit() int
func (BaseDevice) GetNvidiaMpsMemoryTotal ¶
func (c BaseDevice) GetNvidiaMpsMemoryTotal() int
func (BaseDevice) GetNvidiaMpsThreadPercentage ¶
func (c BaseDevice) GetNvidiaMpsThreadPercentage() int
func (BaseDevice) GetQemuId ¶
func (b BaseDevice) GetQemuId() string
func (BaseDevice) GetVGACmd ¶
func (b BaseDevice) GetVGACmd() string
type NVMEListResult ¶
type NVMEListResult struct {
Devices []*NetintDeviceInfo `json:"devices"`
}
type NetintDeviceInfo ¶
type NetintDeviceInfo struct { Namespace int `json:"NameSpace"` DevicePath string `json:"DevicePath"` Firmware string `json:"Firmware"` Index int `json:"Index"` ModelNumber string `json:"ModelNumber"` ProductName string `json:"ProductName"` SerialNumber string `json:"SerialNumber"` UsedBytes int `json:"UsedBytes"` MaximumLBA int `json:"MaximumLBA"` PhysicalSize int `json:"PhysicalSize"` SectorSize int `json:"SectorSize"` }
Click to show internal directories.
Click to hide internal directories.