summaryrefslogtreecommitdiff
path: root/sys/man/2
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-05-14 09:06:09 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2019-05-14 09:06:09 +0200
commit704970074edd7280c8839ca3074e15c4dc07a1ac (patch)
tree8bfed3e48e05b0e9f4b0388c8ba4626c277f6e5f /sys/man/2
parentadf96a529e10eaa90cdc3a4a02c88d5300c9ab52 (diff)
nusb(2): remove startdevs() reference, document getdev() (thanks BurnZeZ)
Diffstat (limited to 'sys/man/2')
-rw-r--r--sys/man/2/nusb13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/man/2/nusb b/sys/man/2/nusb
index 1b2cacbc1..a852a4ca8 100644
--- a/sys/man/2/nusb
+++ b/sys/man/2/nusb
@@ -217,6 +217,14 @@ as an aid for the driver
(which should know how to parse them and what to do with the information).
.SS Configuration
.PP
+.I Getdev
+is the primary entry point for device setup. It takes a
+numeric device address or device path which usually gets
+passed to drivers as a program argument and sets up the device,
+retuning a configured
+.B Dev
+representing the setup endpoint of the device.
+.PP
.I Opendev
creates a
.B Dev
@@ -225,7 +233,7 @@ for the endpoint with directory
Usually, the endpoint is a setup endpoint representing a device. The endpoint
control file is open, but the data file is not. The USB description is void.
In most cases drivers call
-.I startdevs
+.I getdev
and
.I openep
and do not call this function directly.
@@ -236,6 +244,9 @@ loads and parses its configuration information.
After calling it, the device is ready for I/O and the USB description in
.B Dev.usb
is valid.
+In most cases drivers call
+.I getdev
+and do not call this function directly.
.PP
Control requests for an endpoint may be written by calling
.I devctl