* Enqueue several objects on a ring (NOT multi-producers safe). * * @param r * A pointer to the ring structure. * @param obj_table * A pointer to a table of void * pointers (objects). * @param n * The number of objects to add in the ring from the obj_table. * @param free_space * if non-NULL, returns the amount of space in the ring after the * enqueue operation has finished. *
| 246 | * The number of objects enqueued, either 0 or n |
| 247 | */ |
| 248 | static __rte_always_inline unsigned int |
| 249 | rte_ring_sp_enqueue_bulk(struct rte_ring *r, void * const *obj_table, |
| 250 | unsigned int n, unsigned int *free_space) |
| 251 | { |
| 252 | return rte_ring_sp_enqueue_bulk_elem(r, obj_table, sizeof(void *), |
| 253 | n, free_space); |
| 254 | } |
| 255 | |
| 256 | /** |
| 257 | * Enqueue several objects on a ring. |