STRUCT NFP_APP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 sized NFP_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.h struct
  • 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