bpf_prog_array_update_at(9)
π bpf_prog_array_update_at β the glow-up for your prog array
Okay bestie, so this is the bpf_prog_array_update_at(9) moment. It lives in the Kernel API Manual and it's literally here to update one program at a specific index inside a program array. Slay. β¨
πΈ NAME πΈ
bpf_prog_array_update_at β updates the program at the given index into the program array. No cap, that's the whole assignment.
π¦ SYNOPSIS π¦
int bpf_prog_array_update_at (struct bpf_prog_array *array , int index ,
struct bpf_prog *prog );
π ARGUMENTS π
arrayβ abpf_prog_array. Yes, the actual array we're messing with. Main character energy.indexβ the index of the program to update. Like, which slot gets the new vibe.progβ the program to insert into the array. This is the new kid walking in. π
π§ DESCRIPTION π§
So here's the tea: it skips over dummy programs, by not counting them, when it's calculating the position of the program to update. That's the whole behavior. It's giving precision. It's giving "I know exactly which slot you mean." π«Ά
π₯ RETURN π₯
0β Success. We love a win. π-EINVALβ Invalid index value. It must be a non-negative integer, bestie. Negative index? Not today.-ENOENTβ Index out of range. You aimed outside the array. Oops. π
π SEE ALSO π
- Kernel file
./kernel/bpf/core.c ___bpf_prog_run(9)bpf_prog_select_runtime(9)bpf_prog_array_delete_safe_at(9)
Go read those if you want the full lore. Iykyk. π
Reminder: this is from./kernel/bpf, dated October 2026, and the manual is literally namedbpf_prog_array_update_at(9). Periodt. πβ¨π
π¦ 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