Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
vfio.c File Reference
#include <linux/cdev.h>
#include <linux/compat.h>
#include <linux/device.h>
#include <linux/file.h>
#include <linux/anon_inodes.h>
#include <linux/fs.h>
#include <linux/idr.h>
#include <linux/iommu.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/uaccess.h>
#include <linux/vfio.h>
#include <linux/wait.h>

Go to the source code of this file.

Data Structures

struct  vfio
 
struct  vfio_iommu_driver
 
struct  vfio_container
 
struct  vfio_group
 
struct  vfio_device
 

Macros

#define DRIVER_VERSION   "0.3"
 
#define DRIVER_AUTHOR   "Alex Williamson <[email protected]>"
 
#define DRIVER_DESC   "VFIO - User Level meta-driver"
 

Functions

int vfio_register_iommu_driver (const struct vfio_iommu_driver_ops *ops)
 
 EXPORT_SYMBOL_GPL (vfio_register_iommu_driver)
 
void vfio_unregister_iommu_driver (const struct vfio_iommu_driver_ops *ops)
 
 EXPORT_SYMBOL_GPL (vfio_unregister_iommu_driver)
 
int vfio_add_group_dev (struct device *dev, const struct vfio_device_ops *ops, void *device_data)
 
 EXPORT_SYMBOL_GPL (vfio_add_group_dev)
 
voidvfio_del_group_dev (struct device *dev)
 
 EXPORT_SYMBOL_GPL (vfio_del_group_dev)
 
 module_init (vfio_init)
 
 module_exit (vfio_cleanup)
 
 MODULE_VERSION (DRIVER_VERSION)
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 

Macro Definition Documentation

#define DRIVER_AUTHOR   "Alex Williamson <[email protected]>"

Definition at line 35 of file vfio.c.

#define DRIVER_DESC   "VFIO - User Level meta-driver"

Definition at line 36 of file vfio.c.

#define DRIVER_VERSION   "0.3"

Definition at line 34 of file vfio.c.

Function Documentation

EXPORT_SYMBOL_GPL ( vfio_register_iommu_driver  )
EXPORT_SYMBOL_GPL ( vfio_unregister_iommu_driver  )
EXPORT_SYMBOL_GPL ( vfio_add_group_dev  )
EXPORT_SYMBOL_GPL ( vfio_del_group_dev  )
MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
module_exit ( vfio_cleanup  )
module_init ( vfio_init  )
MODULE_LICENSE ( "GPL v2 )
MODULE_VERSION ( DRIVER_VERSION  )
int vfio_add_group_dev ( struct device dev,
const struct vfio_device_ops ops,
void device_data 
)

VFIO driver API

Definition at line 597 of file vfio.c.

void* vfio_del_group_dev ( struct device dev)

Definition at line 678 of file vfio.c.

int vfio_register_iommu_driver ( const struct vfio_iommu_driver_ops ops)

IOMMU driver registration

Definition at line 91 of file vfio.c.

void vfio_unregister_iommu_driver ( const struct vfio_iommu_driver_ops ops)

Definition at line 120 of file vfio.c.