WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH] Use correct upstream name for /dev/xen/evtchn

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH] Use correct upstream name for /dev/xen/evtchn
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Mon, 15 Feb 2010 17:35:10 +0000
Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
Delivery-date: Mon, 15 Feb 2010 09:35:09 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1266255301 0
# Node ID 9f350544554f7f22998eaeb2a9ada738fae3fa7a
# Parent  fe4cae1a911111d826b599362464ec894f2fc437
Use correct upstream name for /dev/xen/evtchn.

This name has been upstream since forever and the typo here was
leaving us with two device nodes.

If the device is not present then do not create it. The assumption
that /dev/xen/ev{en,}tchn is minor 63 does not hold since the driver
requests a dynamic minor.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

diff -r fe4cae1a9111 -r 9f350544554f eventchn/eventchn_stubs.c
--- a/eventchn/eventchn_stubs.c Mon Jan 25 12:06:20 2010 +0000
+++ b/eventchn/eventchn_stubs.c Mon Feb 15 17:35:01 2010 +0000
@@ -41,9 +41,7 @@
 #include <caml/callback.h>
 #include <caml/fail.h>
 
-#define EVENTCHN_PATH "/dev/xen/eventchn"
-#define EVENTCHN_MAJOR 10
-#define EVENTCHN_MINOR 63
+#define EVENTCHN_PATH "/dev/xen/evtchn"
 
 #define WITH_INJECTION_CAPABILITY
 #include "eventchn_injection.c"
@@ -73,11 +71,7 @@
        pre_eventchn_open();
 
        fd = open(EVENTCHN_PATH, O_RDWR);
-       if (fd == -1 && errno == ENOENT) {
-               mkdir("/dev/xen", 0640);
-               mknod(EVENTCHN_PATH, S_IFCHR | 0640, makedev(10, 63));
-               fd = open(EVENTCHN_PATH, O_RDWR);
-       }
+
        return fd;
 }
 

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

<Prev in Thread] Current Thread [Next in Thread>