summaryrefslogtreecommitdiffstats
path: root/usr.sbin/usbd
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-11-22 19:04:58 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-11-22 19:04:58 +0000
commit6bba2d7ce1cee332597ed9472743705bdd002b02 (patch)
treedfdc62e0f4eadf242fb0a216a7cbe92e09e7252c /usr.sbin/usbd
parent61388a47ab768a00b479e939f4a4cd11c056ec87 (diff)
downloadFreeBSD-src-6bba2d7ce1cee332597ed9472743705bdd002b02.zip
FreeBSD-src-6bba2d7ce1cee332597ed9472743705bdd002b02.tar.gz
Clarify the functionality of usbd a bit more.
Diffstat (limited to 'usr.sbin/usbd')
-rw-r--r--usr.sbin/usbd/usbd.827
1 files changed, 24 insertions, 3 deletions
diff --git a/usr.sbin/usbd/usbd.8 b/usr.sbin/usbd/usbd.8
index 0f3f5ef..c56a45b 100644
--- a/usr.sbin/usbd/usbd.8
+++ b/usr.sbin/usbd/usbd.8
@@ -42,15 +42,36 @@
.Nd supervise USB attach/detach
.Sh SYNOPSIS
.Nm
+.Op Fl c Ar configfile
.Op Fl d
+.Op Fl e
.Op Fl f Ar device
+.Op Fl n
.Op Fl t Ar timeout
.Op Fl v
.Sh DESCRIPTION
.Nm
-handles the USB device attachment and detachment.
+handles the USB device attachment and detachment. It does two things.
+Through opening the
+.Pa /dev/usb0 ,
+.Pa /dev/usb1 ,
+etc. devices, it enables the kernel to do handle change requests from
+attached hubs. This functionality will be removed when the kernel has
+kernel threads. The (multiple)
+.Fl f Ar device
+command line options specify which controllers it should handle.
+Normally this option is not needed.
.Pp
-The options are as follows:
+The second part is the handling of the attachment and detachment of USB
+devices. The device
+.Pa /dev/usb
+is opened and events are read from it. Whenever a device is attached or
+detached the list of actions read from
+.Pa /etc/usbd.conf
+are searched for a matching entry. If found, the corresponding action is
+executed.
+.Pp
+The command line options are as follows:
.Bl -tag -width Ds
.It Fl c Ar filename
Name of configuration file. The default is
@@ -59,7 +80,7 @@ Name of configuration file. The default is
Enable debugging to the standard output,
and do not disassociate from the controlling terminal.
.It Fl e
-Do one device tree exploration and then exit.
+Do one device tree exploration, no event queue handling and then exit.
.It Fl f Ar device
Specify the pathname of a USB controller device file.
The flag may be repeated to watch more than one USB controller.
OpenPOWER on IntegriCloud