aboutsummaryrefslogtreecommitdiffstats
path: root/xenolinux-2.4.26-sparse/arch/xen/lib/xen_proc.c
blob: 9c06dcdd897dd145561cfd1c659b63604131a2c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
}