bpf-api 0.3.1

Idomatic Rust bindings for eBPF programs, probes, and maps.
Documentation
1
2
3
4
5
6
7
8
9
use bpf_api::collections::RingBuffer;

fn main() {
    const RING_SIZE: u32 = 10 << 20;
    let ring = RingBuffer::with_capacity(RING_SIZE).unwrap();
    ring.len();
    ring.is_empty();
    ring.get_buf();
}