#define pr_fmt(fmt) …
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/mm.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/init.h>
#include <linux/capability.h>
#include <xen/xen.h>
#include <xen/page.h>
#include <xen/xenbus.h>
#include <xen/xenbus_dev.h>
#include <xen/grant_table.h>
#include <xen/events.h>
#include <asm/xen/hypervisor.h>
#include "xenbus.h"
static int xenbus_backend_open(struct inode *inode, struct file *filp)
{ … }
static long xenbus_alloc(domid_t domid)
{ … }
static long xenbus_backend_ioctl(struct file *file, unsigned int cmd,
unsigned long data)
{ … }
static int xenbus_backend_mmap(struct file *file, struct vm_area_struct *vma)
{ … }
static const struct file_operations xenbus_backend_fops = …;
static struct miscdevice xenbus_backend_dev = …;
static int __init xenbus_backend_init(void)
{ … }
device_initcall(xenbus_backend_init);