Date: Mon, 1 Nov 2010 08:42:26 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 185296 for review Message-ID: <201011010842.oA18gQBK067239@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@185296?ac=10 Change 185296 by hselasky@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011010842.oA18gQBK067239>