summaryrefslogtreecommitdiff
path: root/doc/mdevd-coldplug.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/mdevd-coldplug.html')
-rw-r--r--doc/mdevd-coldplug.html74
1 files changed, 74 insertions, 0 deletions
diff --git a/doc/mdevd-coldplug.html b/doc/mdevd-coldplug.html
new file mode 100644
index 0000000..8355df3
--- /dev/null
+++ b/doc/mdevd-coldplug.html
@@ -0,0 +1,74 @@
+<html>
+ <head>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta http-equiv="Content-Language" content="en" />
+ <title>mdevd: the mdevd-coldplug program</title>
+ <meta name="Description" content="mdevd: the mdevd-coldplug program" />
+ <meta name="Keywords" content="mdevd linux administration root utilities devd mdev-s uevent netlink coldplug boot" />
+ <!-- <link rel="stylesheet" type="text/css" href="//skarnet.org/default.css" /> -->
+ </head>
+<body>
+
+<p>
+<a href="index.html">mdevd</a><br />
+<a href="//skarnet.org/software/">Software</a><br />
+<a href="//skarnet.org/">skarnet.org</a>
+</p>
+
+<h1> The <tt>mdevd-coldplug</tt> program </h1>
+
+<p>
+<tt>mdevd-coldplug</tt> performs a <em>coldplug</em>: it scans
+<tt>/sys</tt> for all registered devices an uevent manager would
+want to perform actions on, and generates uevents for all these
+devices.
+</p>
+
+<h2> Interface </h2>
+
+<pre>
+ mdevd-coldplug [ -s <em>slashsys</em> ]
+</pre>
+
+<ul>
+ <li> mdevd-coldplug scans <tt>/sys</tt> for devices. </li>
+ <li> For every suitable device it finds, it generates an
+uevent and writes it to its stdout, using the same format
+as <a href="mdevd-netlink.html">mdevd-netlink</a>. </li>
+ <li> It exits when it has finished scanning. </li>
+</ul>
+
+<p>
+ This implies that the <tt>mdevd-coldplug | mdevd</tt> command line
+will function as a coldplug manager, just like <tt>mdev -s</tt>.
+</p>
+
+<h2> Options </h2>
+
+<ul>
+ <li> <tt>-s</tt>&nbsp;<em>slashsys</em>&nbsp;: assume the sysfs
+pseudo-filesystem is mounted on <em>slashsys</em>. Default is <tt>/sys</tt>. </li>
+</ul>
+
+<h2> Exit codes </h2>
+
+<ul>
+ <li> 0: success </li>
+ <li> 111: system call failed </li>
+</ul>
+
+<h2> Notes </h2>
+
+<ul>
+ <li> mdevd-coldplug is a short-lived program, just like
+<tt>mdev -s</tt>. </li>
+ <li> Unlike <tt>mdev -s</tt>, however, mdevd-coldplug does
+not act on the uevents it generates. It simply prints them.
+This allows for easy debugging. </li>
+ <li> To act on the uevents, simply pipe the output of
+<tt>mdevd-coldplug</tt> into <a href="mdevd.html">mdevd</a>. </li>
+</ul>
+
+</body>
+</html>