10 #include <linux/kernel.h>
11 #include <linux/errno.h>
12 #include <linux/module.h>
14 #include <linux/magic.h>
19 #include "../privcmd.h"
20 #include "../xenbus/xenbus_comms.h"
22 #include <asm/xen/hypervisor.h>
55 inode = xenfs_make_inode(sb,
S_IFREG | mode);
69 size_t size, loff_t *off)
80 .read = capabilities_read,
84 static int xenfs_fill_super(
struct super_block *sb,
void *data,
int silent)
89 {
"capabilities", &capabilities_file_ops,
S_IRUGO },
100 xenfs_create_file(sb, sb->
s_root,
"xsd_kva",
102 xenfs_create_file(sb, sb->
s_root,
"xsd_port",
110 int flags,
const char *dev_name,
113 return mount_single(fs_type, flags, data, xenfs_fill_super);
119 .mount = xenfs_mount,
123 static int __init xenfs_init(
void)
128 printk(
KERN_INFO "XENFS: not registering filesystem on non-xen platform\n");
132 static void __exit xenfs_exit(
void)