Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

adding /dev/xen/gnttab



Hi!

For gnttab support a new device file is needed for a new set of ioctl()'s.
Attached patch adds /dev/xen/gnttab.
I would like to use the opportunity to move xen device files
into /dev/xen/. The patch keeps the existing ones for backward
compatibility.

Comments?

Christoph
Index: etc/etc.amd64/MAKEDEV.conf
===================================================================
RCS file: /cvsroot/src/etc/etc.amd64/MAKEDEV.conf,v
retrieving revision 1.16
diff -u -p -r1.16 MAKEDEV.conf
--- etc/etc.amd64/MAKEDEV.conf  4 Nov 2008 14:25:10 -0000       1.16
+++ etc/etc.amd64/MAKEDEV.conf  2 Sep 2010 13:58:52 -0000
@@ -43,5 +43,18 @@ all_md)
        ;;
 
 xen)
+       makedir xen 755
+       unit=0
+       for dev in evtchn xsd_kva
+       do
+               mkdev xen/$dev c 141 $unit
+               unit=$(($unit + 1))
+       done
+       unit=0
+       for dev in xencons gnttab
+       do
+               mkdev xen/$dev c 143 $unit
+               unit=$(($unit + 1))
+       done
        makedev xenevt xencons xsd_kva
        ;;
Index: etc/etc.i386/MAKEDEV.conf
===================================================================
RCS file: /cvsroot/src/etc/etc.i386/MAKEDEV.conf,v
retrieving revision 1.20
diff -u -p -r1.20 MAKEDEV.conf
--- etc/etc.i386/MAKEDEV.conf   4 Nov 2008 14:25:10 -0000       1.20
+++ etc/etc.i386/MAKEDEV.conf   2 Sep 2010 13:58:52 -0000
@@ -47,6 +47,19 @@ all_md)
        ;;
 
 xen)
+       makedir xen 755
+       unit=0
+       for dev in evtchn xsd_kva
+       do
+               mkdev xen/$dev c 141 $unit
+               unit=$(($unit + 1))
+       done
+       unit=0
+       for dev in xencons gnttab
+       do
+               mkdev xen/$dev c 143 $unit
+               unit=$(($unit + 1))
+       done
        makedev xenevt xencons xsd_kva
        ;;
 


Home | Main Index | Thread Index | Old Index