Skip to content

Struct opae_vfio

ClassList > opae_vfio

OPAE VFIO device abstraction. More...

  • #include <vfio.h>

Public Attributes

Type Name
opae_hash_map cont_buffers
Map of allocated DMA buffers.
char * cont_device
"/dev/vfio/vfio"
int cont_fd
Container file descriptor.
char * cont_pciaddr
PCIe address, eg 0000:00:00.0.
struct opae_vfio_iova_range * cont_ranges
List of IOVA ranges.
struct opae_vfio_device device
The VFIO device.
struct opae_vfio_group group
The VFIO device group.
struct mem_alloc iova_alloc
Allocator for IOVA space.
pthread_mutex_t lock
For thread safety.

Detailed Description

This structure is used to interact with the OPAE VFIO API. It tracks data related to the VFIO container, group, and device. A mutex is provided for thread safety.

Public Attributes Documentation

variable cont_buffers

opae_hash_map opae_vfio::cont_buffers;

variable cont_device

char* opae_vfio::cont_device;

variable cont_fd

int opae_vfio::cont_fd;

variable cont_pciaddr

char* opae_vfio::cont_pciaddr;

variable cont_ranges

struct opae_vfio_iova_range* opae_vfio::cont_ranges;

variable device

struct opae_vfio_device opae_vfio::device;

variable group

struct opae_vfio_group opae_vfio::group;

variable iova_alloc

struct mem_alloc opae_vfio::iova_alloc;

variable lock

pthread_mutex_t opae_vfio::lock;

The documentation for this class was generated from the following file docs/sw/include/opae/vfio.h