- Updated to 2.6.22-rc2-git7:
[linux-flexiantxendom0-3.2.10.git] / drivers / xen / core / xen_proc.c
1
2 #include <linux/module.h>
3 #include <linux/proc_fs.h>
4 #include <xen/xen_proc.h>
5
6 static struct proc_dir_entry *xen_base;
7
8 struct proc_dir_entry *create_xen_proc_entry(const char *name, mode_t mode)
9 {
10         if ( xen_base == NULL )
11                 if ( (xen_base = proc_mkdir("xen", &proc_root)) == NULL )
12                         panic("Couldn't create /proc/xen");
13         return create_proc_entry(name, mode, xen_base);
14 }
15
16 EXPORT_SYMBOL_GPL(create_xen_proc_entry); 
17
18 void remove_xen_proc_entry(const char *name)
19 {
20         remove_proc_entry(name, xen_base);
21 }
22
23 EXPORT_SYMBOL_GPL(remove_xen_proc_entry);