Home
last modified time | relevance | path

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

/kernel/bpf/
Dringbuf.c265 unsigned long cons_pos, prod_pos; in ringbuf_avail_data_sz() local
267 cons_pos = smp_load_acquire(&rb->consumer_pos); in ringbuf_avail_data_sz()
269 return prod_pos - cons_pos; in ringbuf_avail_data_sz()
326 unsigned long cons_pos, prod_pos, new_prod_pos, flags; in __bpf_ringbuf_reserve() local
337 cons_pos = smp_load_acquire(&rb->consumer_pos); in __bpf_ringbuf_reserve()
352 if (new_prod_pos - cons_pos > rb->mask) { in __bpf_ringbuf_reserve()
391 unsigned long rec_pos, cons_pos; in bpf_ringbuf_commit() local
409 cons_pos = smp_load_acquire(&rb->consumer_pos) & rb->mask; in bpf_ringbuf_commit()
413 else if (cons_pos == rec_pos && !(flags & BPF_RB_NO_WAKEUP)) in bpf_ringbuf_commit()