NFP_CPP_ID(9)
π NFP_CPP_ID π
okay so real quick bestie β this is a page from the Kernel API Manual, and it's about one tiny little macro that's genuinely doing the most. let's get into it β¨
πΈ NAME πΈ
NFP_CPP_ID β packs a target, a token, and an action all into one single CPP ID. that's it. that's the whole job. and she ate. π
β¨ SYNOPSIS β¨
NFP_CPP_ID (target , action , token );
yes the spacing is Like That, don't come for her, she's doing her best π«Ά
π ARGUMENTS π
targetβ the NFP CPP target id. like, where the vibe is headed π¦actionβ the NFP CPP action id. literally what we're doing when we get there π₯tokenβ the NFP CPP token id. the little name tag so everybody knows who's who π·οΈ
π§ DESCRIPTION π§
okay so picture this: you're mashing a target, an action, and a token together into one 32-bit CPP identifier that represents the access you're about to make. one neat little package. it's giving "three besties, one group chat" energy, no cap π
these identifiers get passed as parameters to other NFP CPP functions β so like, this is the ID everyone else in the friend group gets introduced to. main character energy fr fr π
and here's the lil caveat, so listen up π: some CPP devices may allow wildcard identifiers to be specified. may. not a promise, bestie β that's a "depends on the device" situation, so don't go assuming.
β RETURN β
the NFP CPP ID π« β that's what you get back, that's the whole gift.
π SEE ALSO π
- the Kernel file
./drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpp.h NFP_CPP_ISLAND_ID(9)NFP_CPP_ID_TARGET_of(9)NFP_CPP_ID_TOKEN_of(9)NFP_CPP_ID_ACTION_of(9)NFP_CPP_ID_ISLAND_of(9)NFP_CPP_INTERFACE(9)NFP_CPP_INTERFACE_TYPE_of(9)NFP_CPP_INTERFACE_UNIT_of(9)NFP_CPP_INTERFACE_CHANNEL_of(9)nfp_cppcore_pcie_unit(9)struct nfp_cpp_operations(9)
like, the whole squad, honestly. go say hi π«Ά
and that's the page!! π this lil icon lives at ./drivers/net/ethernet/netrono... and the version stamp is October 2026 β so yeah, she's from the future, we don't ask questions π¦β¨ mwah, ily, go pack some IDs π
π¦ 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