vfio

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 4

Documentation

Overview

Package vfio provides server, vfioClient chain elements for the VFIO mechanism connection

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Major

func Major(dev uint64) uint32

Major is unix.Major

func Minor

func Minor(dev uint64) uint32

Minor is unix.Minor

func NewClient

func NewClient(options ...Option) networkservice.NetworkServiceClient

NewClient returns a new VFIO client chain element

func NewServer

func NewServer(vfioDir, cgroupBaseDir string) networkservice.NetworkServiceServer

NewServer returns a new VFIO server chain element

Types

type Option

type Option func(c *vfioClient)

Option is an option for NewClient

func WithCgroupDir

func WithCgroupDir(cgroupDir string) Option

WithCgroupDir sets vfioClient cgroupDir

func WithVFIODir

func WithVFIODir(vfioDir string) Option

WithVFIODir sets vfioClient vfioDir

Jump to

Keyboard shortcuts

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