STRUCT NFP_BPF_SUBPROG_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” a u8 bitfield that's exactly : 1 wide, 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