#include <linux/vfio.h>
#include <linux/iommufd.h>
#include "vfio.h"
static dev_t device_devt;
void vfio_init_device_cdev(struct vfio_device *device)
{ … }
int vfio_device_fops_cdev_open(struct inode *inode, struct file *filep)
{ … }
static void vfio_df_get_kvm_safe(struct vfio_device_file *df)
{ … }
long vfio_df_ioctl_bind_iommufd(struct vfio_device_file *df,
struct vfio_device_bind_iommufd __user *arg)
{ … }
void vfio_df_unbind_iommufd(struct vfio_device_file *df)
{ … }
int vfio_df_ioctl_attach_pt(struct vfio_device_file *df,
struct vfio_device_attach_iommufd_pt __user *arg)
{ … }
int vfio_df_ioctl_detach_pt(struct vfio_device_file *df,
struct vfio_device_detach_iommufd_pt __user *arg)
{ … }
static char *vfio_device_devnode(const struct device *dev, umode_t *mode)
{ … }
int vfio_cdev_init(struct class *device_class)
{ … }
void vfio_cdev_cleanup(void)
{ … }