* Returns the number of events in the ring * * @param r * pointer to the event ring * @return * the number of events in the ring */
| 47 | * the number of events in the ring |
| 48 | */ |
| 49 | static __rte_always_inline unsigned int |
| 50 | rte_event_ring_count(const struct rte_event_ring *r) |
| 51 | { |
| 52 | return rte_ring_count(&r->r); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Returns the amount of free space in the ring |