* Enqueue one object on a ring (NOT multi-producers safe). * * @param r * A pointer to the ring structure. * @param obj * A pointer to the object to be added. * @return * - 0: Success; objects enqueued. * - -ENOBUFS: Not enough room in the ring to enqueue; no object is enqueued. */
| 312 | * - -ENOBUFS: Not enough room in the ring to enqueue; no object is enqueued. |
| 313 | */ |
| 314 | static __rte_always_inline int |
| 315 | rte_ring_sp_enqueue(struct rte_ring *r, void *obj) |
| 316 | { |
| 317 | return rte_ring_sp_enqueue_elem(r, &obj, sizeof(void *)); |
| 318 | } |
| 319 | |
| 320 | /** |
| 321 | * Enqueue one object on a ring. |