container_device

package
v0.0.0-...-6410feb Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 (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"`
}

Jump to

Keyboard shortcuts

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