Documentation ¶
Overview ¶
Package vfio implements a proxy for VFIO devices.
Index ¶
Constants ¶
View Source
const ( // VFIO_MINOR is the VFIO minor number from include/linux/miscdevice.h. VFIO_MINOR = 196 // VFIOPath is the valid path to a VFIO device. VFIOPath = "/dev/vfio/vfio" )
Variables ¶
This section is empty.
Functions ¶
func GetTPUDeviceMajor ¶
func GetTPUDeviceMajor(vfsObj *vfs.VirtualFilesystem) (uint32, error)
GetTPUDeviceMajor returns the dynamically allocated major number for the vfio device.
func RegisterTPUDevice ¶
func RegisterTPUDevice(vfsObj *vfs.VirtualFilesystem, minor, deviceNum uint32, useDevGofer bool) error
RegisterTPUDevice registers devices implemented by this package in vfsObj.
func RegisterVFIODevice ¶
func RegisterVFIODevice(vfsObj *vfs.VirtualFilesystem, useDevGofer bool) error
RegisterVFIODevice registers VFIO devices that are implemented by this package in vfsObj.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.