PERFORCE change 185296 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Nov 1 08:42:27 UTC 2010
http://p4web.freebsd.org/@@185296?ac=10
Change 185296 by hselasky at hselasky_laptop001 on 2010/11/01 08:41:32
LibUSB documentation.
PR: usb/151851
Affected files ...
.. //depot/projects/usb/src/lib/libusb/libusb.3#27 edit
Differences ...
==== //depot/projects/usb/src/lib/libusb/libusb.3#27 (text+ko) ====
@@ -380,10 +380,14 @@
.Pp
.Ft int
.Fn libusb_control_transfer "libusb_device_handle *devh" "uint8_t bmRequestType" "uint8_t bRequest" "uint16_t wValue" "uint16_t wIndex" "unsigned char *data" "uint16_t wLength" "unsigned int timeout"
-Perform a USB control transfer. Returns 0 on success, LIBUSB_ERROR_TIMEOUT
-if the transfer timeout, LIBUSB_ERROR_PIPE if the control request was not
-supported, LIBUSB_ERROR_NO_DEVICE if the device has been disconnected and
-LIBUSB_ERROR code on other failure.
+Perform a USB control transfer. Returns the actual number of bytes
+transferred on success in the range from and including zero until and
+including
+.Xa wLength .
+On error a libusb error code is returned, for example
+LIBUSB_ERROR_TIMEOUT if the transfer timeout, LIBUSB_ERROR_PIPE if the
+control request was not supported, LIBUSB_ERROR_NO_DEVICE if the
+device has been disconnected or LIBUSB_ERROR code on other failure.
.
.Pp
.Ft int
More information about the p4-projects
mailing list