aboutsummaryrefslogtreecommitdiffstats
path: root/udev-config/doc/95-udev-late.txt
diff options
context:
space:
mode:
Diffstat (limited to 'udev-config/doc/95-udev-late.txt')
-rw-r--r--udev-config/doc/95-udev-late.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/udev-config/doc/95-udev-late.txt b/udev-config/doc/95-udev-late.txt
new file mode 100644
index 000000000..00ea17c61
--- /dev/null
+++ b/udev-config/doc/95-udev-late.txt
@@ -0,0 +1,18 @@
+Purpose of rules file:
+
+Sends all uevents to a Unix-domain socket, where they can be monitored by other
+programs.
+
+
+Description of rules:
+
+There is only one rule, which matches all uevents. It uses Udev's RUN key to
+specify a socket to send each uevent to. Normally RUN is used to start up a
+process, but if the pathname starts with "socket:", Udev instead interprets
+the rest of the name as a Unix-domain socket to send the uevent to. In this
+case, we send send the uevent to the socket named /org/kernel/udev/monitor,
+which is created by the udevmonitor program. Udevmonitor is used to watch
+uevents as they come to Udev. Its only purpose is for debugging, but sending
+the uevent to a socket that doesn't exist is a very cheap operation, so we
+enable this rule for all uevents.
+