STRUCT NFP_BPF_SUBPROG_INFO(9)
π struct nfp_bpf_subprog_info(9) π
okay so bestie, we're in the Kernel API Manual rn and this page is literally all about struct nfp_bpf_subprog_info β the little info blob for an nfp BPF sub-program (which is giving "function" energy, iykyk). it's small, it's iconic, it's the main character of exactly two fields. let's get into it π«Ά
β¨ NAME β¨
struct nfp_bpf_subprog_info β nfp BPF sub-program (a.k.a. function) info. yes that's the whole name, no cap π
πΈ SYNOPSIS πΈ
struct nfp_bpf_subprog_info {
u16 stack_depth;
u8 needs_reg_push : 1;
};
look at her. two members. absolutely slaying the minimalism π
π Members π
stack_depthβ the maximum stack depth this sub-program uses. like, how deep does the stack go? that's the number.u16, so she's got room πneeds_reg_pushβ au8bitfield that's exactly: 1wide, and it answers the question: does this sub-program use callee-saved registers? if yes, this bit is doing the talking β¨
ngl, it's giving "small struct, big responsibilities." two fields, zero fluff, periodt π
π¦ SEE ALSO π¦
- Kernel file
./drivers/net/ethernet/netronome/nfp/bpf/main.h struct nfp_app_bpf(9)struct nfp_bpf_map(9)struct nfp_bpf_reg_state(9)struct nfp_insn_meta(9)struct nfp_prog(9)struct nfp_bpf_vnic(9)
go read those if you want the full lore, bestie β this struct does NOT exist in a vacuum π§
aaaand that's the page! π it's from ./drivers/net/ethernet/netrono..., dated October 2026, and it's filed under struct nfp_bpf_subprog_info(9) in case you need to find her again. mwah, study hard, drink water πππ¦
π¦ 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