From 235576e6ee8be252da3e8f0de86ef4c4932fb988 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Mon, 15 Feb 2010 17:35:01 +0000 Subject: [PATCH] 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 --- eventchn/eventchn_stubs.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/eventchn/eventchn_stubs.c b/eventchn/eventchn_stubs.c index 1e15dab..1e2c354 100644 --- a/eventchn/eventchn_stubs.c +++ b/eventchn/eventchn_stubs.c @@ -41,9 +41,7 @@ #include #include -#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 @@ int eventchn_do_open(void) 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; } -- 2.39.5