NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
devemu_pci_device_msix_host_sample.c File Reference
#include <errno.h>
#include <signal.h>
#include <linux/vfio.h>
#include <sys/ioctl.h>
#include <sys/eventfd.h>
#include <unistd.h>
#include <doca_error.h>
#include <doca_log.h>
#include <common.h>
#include <devemu_pci_common.h>
#include <devemu_pci_host_common.h>
Include dependency graph for devemu_pci_device_msix_host_sample.c:

Go to the source code of this file.

Functions

 DOCA_LOG_REGISTER (DEVEMU_PCI_DEVICE_MSIX_HOST)
 
static void signal_handler (int signum)
 
static doca_error_t map_msix_to_fds (struct devemu_host_resources *resources)
 
static void read_msix_events (struct devemu_host_resources *resources, uint16_t msix_idx)
 
doca_error_t devemu_pci_device_msix_host (const char *pci_address, int vfio_group)
 

Variables

static bool force_quit
 

Function Documentation

◆ devemu_pci_device_msix_host()

doca_error_t devemu_pci_device_msix_host ( const char *  pci_address,
int  vfio_group 
)

Definition at line 161 of file devemu_pci_device_msix_host_sample.c.

◆ DOCA_LOG_REGISTER()

DOCA_LOG_REGISTER ( DEVEMU_PCI_DEVICE_MSIX_HOST  )

◆ map_msix_to_fds()

static doca_error_t map_msix_to_fds ( struct devemu_host_resources resources)
static

Definition at line 63 of file devemu_pci_device_msix_host_sample.c.

◆ read_msix_events()

static void read_msix_events ( struct devemu_host_resources resources,
uint16_t  msix_idx 
)
static

Definition at line 141 of file devemu_pci_device_msix_host_sample.c.

◆ signal_handler()

static void signal_handler ( int  signum)
static

Definition at line 49 of file devemu_pci_device_msix_host_sample.c.

Variable Documentation

◆ force_quit

bool force_quit
static

Definition at line 42 of file devemu_pci_device_msix_host_sample.c.