aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-06-13 02:02:11 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-12 19:34:38 -0400
commit8b3b01c898a44c2fc7217eb579982b9d132113f5 (patch)
tree4d7da145c0fa47243b0f67b62fcdfaa4f53d184e /include/linux/usb.h
parent300871cd963e24a68aaa9b762f4a10403697d9be (diff)
USB: Add URB_FREE_BUFFER flag and the logic behind it
USB: Add URB_FREE_BUFFER flag for freeing the transfer buffer In some cases it is not needed that the driver keeps track of the transfer buffer of an URB. It can be simply freed along with the URB itself when the reference count goes down to zero. The new flag URB_FREE_BUFFER enables this behavior. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r--include/linux/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index efce9a4c511c..533c32374e01 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -994,6 +994,7 @@ extern int usb_disabled(void);
994#define URB_ZERO_PACKET 0x0040 /* Finish bulk OUT with short packet */ 994#define URB_ZERO_PACKET 0x0040 /* Finish bulk OUT with short packet */
995#define URB_NO_INTERRUPT 0x0080 /* HINT: no non-error interrupt 995#define URB_NO_INTERRUPT 0x0080 /* HINT: no non-error interrupt
996 * needed */ 996 * needed */
997#define URB_FREE_BUFFER 0x0100 /* Free transfer buffer with the URB */
997 998
998struct usb_iso_packet_descriptor { 999struct usb_iso_packet_descriptor {
999 unsigned int offset; 1000 unsigned int offset;