Clarify the functionality of usbd a bit more.

This commit is contained in:
Nick Hibma 1999-11-22 19:04:58 +00:00
parent 6e24b2a8e2
commit 6739e1ad25
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53599

View File

@ -42,15 +42,36 @@
.Nd supervise USB attach/detach .Nd supervise USB attach/detach
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl c Ar configfile
.Op Fl d .Op Fl d
.Op Fl e
.Op Fl f Ar device .Op Fl f Ar device
.Op Fl n
.Op Fl t Ar timeout .Op Fl t Ar timeout
.Op Fl v .Op Fl v
.Sh DESCRIPTION .Sh DESCRIPTION
.Nm .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 .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 .Bl -tag -width Ds
.It Fl c Ar filename .It Fl c Ar filename
Name of configuration file. The default is Name of configuration file. The default is
@ -59,7 +80,7 @@ Name of configuration file. The default is
Enable debugging to the standard output, Enable debugging to the standard output,
and do not disassociate from the controlling terminal. and do not disassociate from the controlling terminal.
.It Fl e .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 .It Fl f Ar device
Specify the pathname of a USB controller device file. Specify the pathname of a USB controller device file.
The flag may be repeated to watch more than one USB controller. The flag may be repeated to watch more than one USB controller.