* Dequeue one object from a ring. * * 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_p * A pointer to a void * pointer (object) that will be filled. * @return * - 0: Success, objects dequeued. * - -ENOE
| 471 | * dequeued. |
| 472 | */ |
| 473 | static __rte_always_inline int |
| 474 | rte_ring_dequeue(struct rte_ring *r, void **obj_p) |
| 475 | { |
| 476 | return rte_ring_dequeue_elem(r, obj_p, sizeof(void *)); |
| 477 | } |
| 478 | |
| 479 | /** |
| 480 | * Flush a ring. |