Searched refs:ring_buffer (Results 1 – 1 of 1) sorted by relevance
70 } ring_buffer; variable185 next_begin = (ring_buffer.begin + 1) % ARRAY_SIZE(ring_buffer.elem); in push_ring_buffer()189 ring_buffer.elem[next_begin].snum = snum; in push_ring_buffer()191 ring_buffer.elem[next_begin].dlen = dl; in push_ring_buffer()206 if (atomic_load_uint(&ring_buffer.begin) == ring_buffer.end) in pop_ring_buffer()209 next_end = (ring_buffer.end + 1) % ARRAY_SIZE(ring_buffer.elem); in pop_ring_buffer()211 *snum = ring_buffer.elem[ring_buffer.end].snum; in pop_ring_buffer()212 *pnum = ring_buffer.elem[ring_buffer.end].pnum; in pop_ring_buffer()213 dlen = MIN(ring_buffer.elem[ring_buffer.end].dlen, RING_BUF_DATA_SIZE); in pop_ring_buffer()214 assert(ring_buffer.elem[ring_buffer.end].dlen == dlen); in pop_ring_buffer()[all …]
Completed in 3 milliseconds