Registry / networking / bpf-sys

bpf-sys

JSON →
library2.3.0rscratesunverified

Low-level FFI bindings for libbpf, enabling BPF program development in Rust.

# Cargo.toml [dependencies] bpf-sys = "2.3.0"
INSTALL
IMPORT
SIG · BPF-SYS
B
bpf-sys
networkingrustv2.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

bpf_object
use bpf_sys::bpf_object;

Opens a BPF object file using the libbpf bindings.

use bpf_sys::bpf_object; let obj = unsafe { bpf_object::open("program.o") };
Debug
Known issues
gotchaRequires libbpf development headers installed on the system.
fix
Install libbpf-dev (Linux) or equivalent before building.
affects: >=0.0.0
Upgrade
Version history
2.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
30
Meta
1
OpenAI (training)
1
Resources
bpf-sys — cargo add bpf-sys · libregistry