| 70 | } |
| 71 | |
| 72 | static inline uint16_t |
| 73 | increment_idx(struct ifmp_ring *r, uint16_t idx, uint16_t n) |
| 74 | { |
| 75 | int x = r->size - idx; |
| 76 | |
| 77 | MPASS(x > 0); |
| 78 | return (x > n ? idx + n : n - x); |
| 79 | } |
| 80 | |
| 81 | /* Consumer is about to update the ring's state to s */ |
| 82 | static inline uint16_t |
no outgoing calls
no test coverage detected