mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-18 22:38:32 +03:00
usb_buf: count number of elements in queue
This is in preparation for limiting the maximum queue length Change-Id: I7cb184d7a1ccb519010a2f3e3295cc3a5fbf8052 Related: OS#4251
This commit is contained in:
@@ -29,6 +29,8 @@ struct usb_buffered_ep {
|
||||
volatile uint32_t in_progress;
|
||||
/* Tx queue (IN) / Rx queue (OUT) */
|
||||
struct llist_head queue;
|
||||
/* current length of queue */
|
||||
unsigned int queue_len;
|
||||
};
|
||||
|
||||
struct msgb *usb_buf_alloc(uint8_t ep);
|
||||
|
||||
Reference in New Issue
Block a user