* Dequeue multiple objects from a ring up to a maximum number. * * This function calls the multi-consumers or the single-consumer * version, depending on the default behaviour that was specified at * ring creation time (see flags). * * @param r * A pointer to the ring structure. * @param obj_table * A pointer to a table of void * pointers (objects) that will be filled. * @param n *
| 808 | * - Number of objects dequeued |
| 809 | */ |
| 810 | static __rte_always_inline unsigned int |
| 811 | rte_ring_dequeue_burst(struct rte_ring *r, void **obj_table, |
| 812 | unsigned int n, unsigned int *available) |
| 813 | { |
| 814 | return rte_ring_dequeue_burst_elem(r, obj_table, sizeof(void *), |
| 815 | n, available); |
| 816 | } |
| 817 | |
| 818 | #ifdef __cplusplus |
| 819 | } |