Bruce Richardson ecaed092b6 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 <bruce.richardson@intel.com>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2017-03-29 22:32:20 +02:00
..
2015-05-12 15:13:15 +02:00
2016-04-01 18:56:27 +02:00
2017-02-21 11:43:07 +01:00
2016-12-06 17:56:04 +01:00
2017-03-15 18:49:41 +01:00
2016-04-11 23:56:34 +02:00
2016-11-07 21:50:27 +01:00
2015-12-15 13:50:42 +01:00
2016-11-11 00:51:19 +01:00
2017-03-29 22:25:34 +02:00
2015-04-29 18:34:58 +02:00
2017-01-17 16:54:59 +01:00