summaryrefslogtreecommitdiff
path: root/libusb/io.c
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2009-11-07 10:43:59 +0000
committerDaniel Drake <dsd@gentoo.org>2009-11-07 10:46:12 +0000
commit11d591058e3f105b0e90c23bbf58b18de691e690 (patch)
treef495ea0db1458d2117c477584ef8103a8396e84c /libusb/io.c
parentf796c9528a71aa55326b6f0c9c7c5ec073d2bf92 (diff)
downloadlibusb-11d591058e3f105b0e90c23bbf58b18de691e690.tar.gz
Update documentation about early completion caveats
Diffstat (limited to 'libusb/io.c')
-rw-r--r--libusb/io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libusb/io.c b/libusb/io.c
index b58eafa..65c2cf4 100644
--- a/libusb/io.c
+++ b/libusb/io.c
@@ -323,6 +323,10 @@ if (r == 0 && actual_length == sizeof(data)) {
* Freeing the transfer after it has been cancelled but before cancellation
* has completed will result in undefined behaviour.
*
+ * When a transfer is cancelled, some of the data may have been transferred.
+ * libusb will communicate this to you in the transfer callback. Do not assume
+ * that no data was transferred.
+ *
* \section bulk_overflows Overflows on device-to-host bulk/interrupt endpoints
*
* If your device does not have predictable transfer sizes (or it misbehaves),