diff options
author | Bastian Blank <waldi@debian.org> | 2011-12-10 13:29:47 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-12-16 13:29:39 -0500 |
commit | 2fb3683e7b164ee2b324039f7c9d90fe5b1a259b (patch) | |
tree | 7ac2e97b48e0940340c37aae4d08a6b67f1e4fd5 /drivers/xen/xenfs/super.c | |
parent | d8414d3c157dc1f83e73c17447ba41fe5afa9d3d (diff) |
xen: Add xenbus device driver
Access to xenbus is currently handled via xenfs. This adds a device
driver for xenbus and makes xenfs use this code.
Signed-off-by: Bastian Blank <waldi@debian.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/xenfs/super.c')
-rw-r--r-- | drivers/xen/xenfs/super.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/xen/xenfs/super.c b/drivers/xen/xenfs/super.c index a55fbf9a1519..a84b53c01436 100644 --- a/drivers/xen/xenfs/super.c +++ b/drivers/xen/xenfs/super.c | |||
@@ -17,6 +17,7 @@ | |||
17 | 17 | ||
18 | #include "xenfs.h" | 18 | #include "xenfs.h" |
19 | #include "../privcmd.h" | 19 | #include "../privcmd.h" |
20 | #include "../xenbus/xenbus_comms.h" | ||
20 | 21 | ||
21 | #include <asm/xen/hypervisor.h> | 22 | #include <asm/xen/hypervisor.h> |
22 | 23 | ||
@@ -83,7 +84,7 @@ static int xenfs_fill_super(struct super_block *sb, void *data, int silent) | |||
83 | { | 84 | { |
84 | static struct tree_descr xenfs_files[] = { | 85 | static struct tree_descr xenfs_files[] = { |
85 | [1] = {}, | 86 | [1] = {}, |
86 | { "xenbus", &xenbus_file_ops, S_IRUSR|S_IWUSR }, | 87 | { "xenbus", &xen_xenbus_fops, S_IRUSR|S_IWUSR }, |
87 | { "capabilities", &capabilities_file_ops, S_IRUGO }, | 88 | { "capabilities", &capabilities_file_ops, S_IRUGO }, |
88 | { "privcmd", &xen_privcmd_fops, S_IRUSR|S_IWUSR }, | 89 | { "privcmd", &xen_privcmd_fops, S_IRUSR|S_IWUSR }, |
89 | {""}, | 90 | {""}, |