Main API for clj-ebpf - eBPF programming in Clojure
Main API for clj-ebpf - eBPF programming in Clojure
(defmap-spec name & opts)Define a reusable BPF map specification. See clj-ebpf.macros/defmap-spec for full documentation.
Define a reusable BPF map specification. See clj-ebpf.macros/defmap-spec for full documentation.
(defprogram name & opts)Define a named BPF program with assembled bytecode and metadata. See clj-ebpf.macros/defprogram for full documentation.
Define a named BPF program with assembled bytecode and metadata. See clj-ebpf.macros/defprogram for full documentation.
(init!)Initialize clj-ebpf and check system compatibility
Initialize clj-ebpf and check system compatibility
(run-example)Run a simple example to verify clj-ebpf is working
Run a simple example to verify clj-ebpf is working
(with-bpf-script config & body)Execute body with BPF maps, programs, and attachments, ensuring cleanup. See clj-ebpf.macros/with-bpf-script for full documentation.
Execute body with BPF maps, programs, and attachments, ensuring cleanup. See clj-ebpf.macros/with-bpf-script for full documentation.
(with-cgroup-program & args)Attach cgroup program and ensure detachment after use
Attach cgroup program and ensure detachment after use
(with-cgroup-skb & args)Load and attach cgroup SKB program, ensure cleanup
Load and attach cgroup SKB program, ensure cleanup
(with-lsm-hook & args)Load and attach LSM hook, ensure cleanup
Load and attach LSM hook, ensure cleanup
(with-lsm-program & args)Attach LSM program and ensure detachment after use
Attach LSM program and ensure detachment after use
(with-map & args)Create a map and ensure it's closed after use
Create a map and ensure it's closed after use
(with-perf-consumer & args)Create and manage perf event consumer with automatic cleanup
Create and manage perf event consumer with automatic cleanup
(with-program & args)Load a program and ensure it's closed after use
Load a program and ensure it's closed after use
(with-ringbuf-consumer & args)Create and manage a ring buffer consumer
Create and manage a ring buffer consumer
(with-tc-filter & args)Attach TC filter and ensure detachment after use
Attach TC filter and ensure detachment after use
(with-tc-program & args)Load TC program, attach filter, and ensure cleanup
Load TC program, attach filter, and ensure cleanup
(with-xdp & args)Attach XDP program to interface and ensure detachment after use
Attach XDP program to interface and ensure detachment after use
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |