Linux Kernel
3.7.1
|
#include <vfio.h>
Data Fields | |
char * | name |
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) |
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