vfio

package
v0.0.0-...-a5542f1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0, MIT Imports: 27 Imported by: 0

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.

Jump to

Keyboard shortcuts

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