This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / drivers / xen / core / xen_proc.c
1
2 #include <linux/config.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 void remove_xen_proc_entry(const char *name)
17 {
18         remove_proc_entry(name, xen_base);
19 }