STRUCT NFP_APP(9)
π struct nfp_app(9) β the NFP application container, bestie π
okay so real talk, this page lives in the Kernel API Manual, and it's literally all about struct nfp_app β the NFP application container. yes queen, it's a container. it holds stuff. iconic behaviour honestly π
β¨ SYNOPSIS β¨
here's the whole vibe, copy-pasted exactly because we do not mess with source code in this house π«Ά
struct nfp_app {
struct pci_dev *pdev;
struct nfp_pf *pf;
struct nfp_cpp *cpp;
struct nfp_net *ctrl;
struct nfp_reprs *reprs[NFP_REPR_TYPE_MAX + 1];
const struct nfp_app_type *type;
unsigned int ctrl_mtu;
struct notifier_block netdev_nb;
void *priv;
};
πΈ Members πΈ
okay so let's meet the cast, because every single one of these fields is a main character in their own right π
pdevβ backpointer to PCI device. it's giving "remember where I came from" energy, ngl.pfβ backpointer to NFP PF structure. another little backpointer, another little slay π₯cppβ pointer to the CPP handle. handle acquired, we love to see it β¨ctrlβ pointer to ctrl vNIC struct. the control vNIC said "I'm the moment" and honestly? correct.reprsβ array of pointers to representors. yes it's an array, and yes it's sizedNFP_REPR_TYPE_MAX + 1, we don't do off-by-one here πtypeβ pointer to const application ops and info. const!! don't touch!! respectfully admire from a distance π¦ctrl_mtuβ MTU to set on the control vNIC. and hear me out: it's set in.init. that's the lore. that's the canon. πnetdev_nbβ Netdevice notifier block. it's literally in the name, it notifies. periodt.privβ app-specific priv data. private data, private business, mind yours bestie π
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/netronome/nfp/nfp_app.hstruct nfp_app_type(9)
iykyk π
ngl if you're poking around in here you're probably writing driver code, so likeβ¦ read nfp_app_type(9) next. it's the whole "ops and info" situation. do it for me π«Ά
and that's the page!! π this whole thing comes to you from ./drivers/net/ethernet/netrono... (yes that's the source/version line, the terminal cut it off, not me π) dated October 2026, and we're out here closing out as struct nfp_app(9) forever and always β bye bestie, go slay some kernel code ππ§πΈ
π¦ 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