bpf_prog_select_runtime(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 the bpf_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 πŸ”₯


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