Home
last modified time | relevance | path

Searched refs:cons_pos (Results 1 – 1 of 1) sorted by relevance

/third_party/libbpf/src/
Dringbuf.c239 unsigned long cons_pos, prod_pos; in ringbuf_process_ring() local
243 cons_pos = smp_load_acquire(r->consumer_pos); in ringbuf_process_ring()
247 while (cons_pos < prod_pos) { in ringbuf_process_ring()
248 len_ptr = r->data + (cons_pos & r->mask); in ringbuf_process_ring()
256 cons_pos += roundup_len(len); in ringbuf_process_ring()
264 cons_pos); in ringbuf_process_ring()
270 smp_store_release(r->consumer_pos, cons_pos); in ringbuf_process_ring()
357 unsigned long cons_pos, prod_pos; in ring__avail_data_size() local
359 cons_pos = ring__consumer_pos(r); in ring__avail_data_size()
361 return prod_pos - cons_pos; in ring__avail_data_size()
[all …]