Skip to contentSkip to conversation

Add /dev/xen/evtchn naming to udev rules

PATCH Applied Jeremy Katz 2 participants 2 messages Aug 21, 2006 – Aug 23, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add /dev/xen/evtchn naming to udev rules

The various tools expect the device node to be /dev/xen/evtchn -- this makes it so that udev actually creates the device there

Jeremy

tools/examples/xen-backend.rules +1 -0
diff -r ec03b24a2d83 tools/examples/xen-backend.rules
@@ -4,3 +4,4 @@ SUBSYSTEM=="xen-backend", KERNEL=="vif*"
 SUBSYSTEM=="xen-backend", KERNEL=="vif*", ACTION=="online", RUN+="$env{script} online"
 SUBSYSTEM=="xen-backend", KERNEL=="vif*", ACTION=="offline", RUN+="$env{script} offline"
 SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/etc/xen/scripts/xen-hotplug-cleanup"
+KERNEL=="evtchn", NAME="xen/%k"

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Applied
#1 lore raw
Quoted 11 lines · Jeremy Katz

The various tools expect the device node to be /dev/xen/evtchn -- this makes it so that udev actually creates the device there

Jeremy

diff -r ec03b24a2d83 tools/examples/xen-backend.rules

tools/examples/xen-backend.rules SUBSYSTEM=="xen-backend", KERNEL=="vif*" · line 7

Quoted 4 lines
tools/examples/xen-backend.rules +1 -0
@@ -4,3 +4,4 @@ SUBSYSTEM=="xen-backend", KERNEL=="vif*"
 SUBSYSTEM=="xen-backend", KERNEL=="vif*", ACTION=="online", RUN+="$env{script} online"
 SUBSYSTEM=="xen-backend", KERNEL=="vif*", ACTION=="offline", RUN+="$env{script} offline"
 SUBSYSTEM=="xen-backend", ACTION=="remove", RUN+="/etc/xen/scripts/xen-hotplug-cleanup"
+KERNEL=="evtchn", NAME="xen/%k"

Applied, thanks Jeremy.

Ewan.