diff options
Diffstat (limited to 'linux-2.4.26-xen-sparse/arch/xen/lib/xen_proc.c')
-rw-r--r-- | linux-2.4.26-xen-sparse/arch/xen/lib/xen_proc.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/linux-2.4.26-xen-sparse/arch/xen/lib/xen_proc.c b/linux-2.4.26-xen-sparse/arch/xen/lib/xen_proc.c new file mode 100644 index 0000000000..9c06dcdd89 --- /dev/null +++ b/linux-2.4.26-xen-sparse/arch/xen/lib/xen_proc.c @@ -0,0 +1,18 @@ + +#include <linux/config.h> +#include <linux/proc_fs.h> + +static struct proc_dir_entry *xen_base; + +struct proc_dir_entry *create_xen_proc_entry(const char *name, mode_t mode) +{ + if ( xen_base == NULL ) + if ( (xen_base = proc_mkdir("xen", &proc_root)) == NULL ) + panic("Couldn't create /proc/xen"); + return create_proc_entry(name, mode, xen_base); +} + +void remove_xen_proc_entry(const char *name) +{ + remove_proc_entry(name, xen_base); +} |