| ecaed092 | 29-Mar-2017 |
Bruce Richardson <[email protected]> |
ring: return remaining entry count when dequeuing
Add an extra parameter to the ring dequeue burst/bulk functions so that those functions can optionally return the amount of remaining objs in the ri
ring: return remaining entry count when dequeuing
Add an extra parameter to the ring dequeue burst/bulk functions so that those functions can optionally return the amount of remaining objs in the ring. This information can be used by applications in a number of ways, for instance, with single-consumer queues, it provides a max dequeue size which is guaranteed to work.
Signed-off-by: Bruce Richardson <[email protected]> Reviewed-by: Yuanhan Liu <[email protected]> Acked-by: Olivier Matz <[email protected]>
show more ...
|