ia64/xen-unstable

view linux-2.4.26-xen-sparse/arch/xen/lib/xen_proc.c @ 1774:131c48baa117

bitkeeper revision 1.1071.1.5 (40f41ae00utn5d2f3tlNLcvG_QhiBA)

Fairly major fixes to the network frontend driver.
Much saner now.
author kaf24@scramble.cl.cam.ac.uk
date Tue Jul 13 17:24:48 2004 +0000 (2004-07-13)
parents f3123052268f
children
line source
2 #include <linux/config.h>
3 #include <linux/proc_fs.h>
5 static struct proc_dir_entry *xen_base;
7 struct proc_dir_entry *create_xen_proc_entry(const char *name, mode_t mode)
8 {
9 if ( xen_base == NULL )
10 if ( (xen_base = proc_mkdir("xen", &proc_root)) == NULL )
11 panic("Couldn't create /proc/xen");
12 return create_proc_entry(name, mode, xen_base);
13 }
15 void remove_xen_proc_entry(const char *name)
16 {
17 remove_proc_entry(name, xen_base);
18 }