sgx

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AESMSocketDir string = "/var/run/aesmd"
View Source
var EnableAESMSocketAttach bool

Functions

func AllDeviceDrivers

func AllDeviceDrivers() map[string]bool

AllDeviceDrivers lists all device drivers.

func AllMountPoints

func AllMountPoints() map[string]bool

AllMountPoints lists all mount points.

func DeviceExists

func DeviceExists(devs []*devicepluginapi.Device, id string) bool

DeviceExists check device existence by id.

func GetDevices

func GetDevices() []*devicepluginapi.Device

GetDevices divides EPC into many virtual devices, each device's ecp memory is 1MiB.

func GetEPCSize

func GetEPCSize() uint64

GetEPCSize returns total EPC size.

func WatchXIDs

func WatchXIDs(ctx context.Context, devs []*devicepluginapi.Device, xids chan<- *devicepluginapi.Device)

WatchXIDs is used for device health-check.

Types

type EPCSection

type EPCSection struct {
	PhysicalAddress uint64
	Size            uint64
}

EPCSection - ECP Section(Bank).

func GetEPCSections

func GetEPCSections() []EPCSection

GetEPCSections lists all EPC sections.

Jump to

Keyboard shortcuts

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