Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
vfio_device_ops Struct Reference

#include <vfio.h>

Data Fields

charname
 
int(* open )(void *device_data)
 
void(* release )(void *device_data)
 
ssize_t(* read )(void *device_data, char __user *buf, size_t count, loff_t *ppos)
 
ssize_t(* write )(void *device_data, const char __user *buf, size_t count, loff_t *size)
 
long(* ioctl )(void *device_data, unsigned int cmd, unsigned long arg)
 
int(* mmap )(void *device_data, struct vm_area_struct *vma)
 

Detailed Description

struct vfio_device_ops - VFIO bus driver device callbacks

: Called when userspace creates new file descriptor for device : Called when userspace releases file descriptor for device : Perform read(2) on device file descriptor : Perform write(2) on device file descriptor : Perform ioctl(2) on device file descriptor, supporting VFIO_DEVICE_* operations documented below : Perform mmap(2) on a region of the device file descriptor

Definition at line 30 of file vfio.h.

Field Documentation

long(* ioctl)(void *device_data, unsigned int cmd, unsigned long arg)

Definition at line 38 of file vfio.h.

int(* mmap)(void *device_data, struct vm_area_struct *vma)

Definition at line 40 of file vfio.h.

char* name

Definition at line 31 of file vfio.h.

int(* open)(void *device_data)

Definition at line 32 of file vfio.h.

ssize_t(* read)(void *device_data, char __user *buf, size_t count, loff_t *ppos)

Definition at line 34 of file vfio.h.

void(* release)(void *device_data)

Definition at line 33 of file vfio.h.

ssize_t(* write)(void *device_data, const char __user *buf, size_t count, loff_t *size)

Definition at line 36 of file vfio.h.


The documentation for this struct was generated from the following file: