STRUCT NFP_BPF_REG_STATE(9)
okay so bestie, welcome to the Kernel API Manual β¨ like literally the kernel docs but make it cute. today's main character is struct nfp_bpf_reg_state, and she's here to hold register state for calls. no cap, that's the whole vibe π
π NAME π
struct nfp_bpf_reg_state β register state for calls π«Ά that's it, that's the job, and she does it flawlessly.
πΈ SYNOPSIS πΈ
struct nfp_bpf_reg_state {
struct bpf_reg_state reg;
bool var_off;
};
two members, zero drama, we love a minimal icon π
π¦ MEMBERS π¦
regβ BPF register state from latest path β¨ like, the most recent path's register state, that's the one she's keeping track of, periodt.var_offβ for stack arg - changes stack offset on different paths π so when it's a stack arg and the stack offset shifts depending on which path you went down, this lilboolis the one who knows about it. iykyk.
fr fr that's every field. i checked twice. nothing hiding in there π
π SEE ALSO π
okay so these are the other kernel-file besties she hangs out with, all from ./drivers/net/ethernet/netronome/nfp/bpf/main.h:
struct nfp_app_bpf(9)struct nfp_bpf_map(9)struct nfp_insn_meta(9)struct nfp_bpf_subprog_info(9)struct nfp_prog(9)struct nfp_bpf_vnic(9)
π¦ and that's the whole page, bestie. source path was giving ./drivers/net/ethernet/netrono... (they really said "you get the gist" with that truncation π), dated October 2026, and it's all about struct nfp_bpf_reg_state(9). go forth and slay your BPF paths πβπ
π¦ 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