bpf_prog_select_runtime(9)
πΈ NAME πΈ
bpf_prog_select_runtime(9) is hanging out in the Kernel API Manual, and bestie, its whole main-character job is to select exec runtime for BPF program. Thatβs the vibe. π
β¨ SYNOPSIS β¨
struct bpf_prog * bpf_prog_select_runtime (struct bpf_prog *fp , int
*err );
π ARGUMENTS π
fpβ this is thebpf_prog, populated with the BPF program. Like, itβs the whole program container, bestie. π«Άerrβ pointer to error variable. Itβs where the error info goes. π
π DESCRIPTION π
okay so the plan is literally: try to JIT the eBPF program. If JIT is not available, use the interpreter. No cap, thatβs the runtime selection situation. π
The BPF program will be executed via the bpf_prog_run function. Thatβs the function doing the actual running, fr fr. π₯
π«Ά RETURN π«Ά
It gives you back the fp argument, along with err set to 0 for success or a negative errno code on failure. slay β success is 0, failure is a negative errno, periodt. π
π₯ SEE ALSO π₯
- Kernel file
./kernel/bpf/core.cβ___bpf_prog_run(9)π bpf_prog_array_delete_safe_at(9)π¦bpf_prog_array_update_at(9)πΈ
okay bestie, thatβs the whole page β from the ./kernel/bpf source/version corner, dated October 2026, with all the bpf_prog_select_runtime(9) energy we deserve ππβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms