Instead of having a separate buffer-backed structure for bookkeeping inflight transfers, use the transfer structures themselves. This removes the need for an additional buffer pool for each DMA session.
Additionally, utilize <queue.h> provided iteration macro instead of accessing private fields directly when looping queue structures.
Instead of having a separate buffer-backed structure for bookkeeping inflight transfers, use the transfer structures themselves. This removes the need for an additional buffer pool for each DMA session.
Additionally, utilize
<queue.h>
provided iteration macro instead of accessing private fields directly when looping queue structures.v2: