Skip to content

Commit 1c9457d

Browse files
committed
libusbp.h: Note that all three of our blocking transfer functions ignore Ctrl+C on Linux.
1 parent 0efa6a3 commit 1c9457d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

include/libusbp.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,9 @@ libusbp_error * libusbp_generic_handle_set_timeout(
572572
uint32_t timeout);
573573

574574
/*! Performs a synchronous (blocking) control transfer on endpoint 0.
575+
*
576+
* Under Linux, this blocking transfer unfortunately cannot be interrupted with
577+
* Ctrl+C.
575578
*
576579
* The @a buffer parameter should point to a buffer that is at least @a wLength
577580
* bytes long.
@@ -595,7 +598,7 @@ libusbp_error * libusbp_control_transfer(
595598
/*! Performs a synchronous (blocking) write of data to a bulk or interrupt
596599
* endpoint.
597600
*
598-
* Under Linux, this blocking write unfortunately cannot be interrupted with
601+
* Under Linux, this blocking transfer unfortunately cannot be interrupted with
599602
* Ctrl+C.
600603
*
601604
* The @a pipe_id parameter specifies which endpoint to use. This argument
@@ -620,7 +623,7 @@ libusbp_error * libusbp_write_pipe(
620623
* an error when the device sends more data than can fit in the
621624
* buffer. This type of error is called an overflow.
622625
*
623-
* Under Linux, this blocking read unfortunately cannot be interrupted with
626+
* Under Linux, this blocking transfer unfortunately cannot be interrupted with
624627
* Ctrl+C.
625628
*
626629
* The @a pipe_id parameter specifies which endpoint to use. This argument

0 commit comments

Comments
 (0)