NFP_CPP_ISLAND_ID(9)
π NFP_CPP_ISLAND_ID(9) β kernel api manual, bestie edition π
okay so this is NFP_CPP_ISLAND_ID, from section 9 of the kernel API manual (yes, the kernel, we're fancy now β¨). sit down, grab a strawberry drink π, and let me tell you about this little macro that's out here packing four whole things into one 32-bit number. main character energy, honestly.
β¨ NAME β¨
NFP_CPP_ISLAND_ID β the macro that packs your target, token, action, and island all into one CPP ID π«Ά
πΈ SYNOPSIS πΈ
NFP_CPP_ISLAND_ID (target , action , token , island );
that's it. four args, one macro, zero drama (okay maybe a little drama, it's kernel code π).
π¦ ARGUMENTS π¦
targetβ the NFP CPP target id, likeβ¦ which thing are we even talking to rn πactionβ the NFP CPP action id, aka what we're doing to ittokenβ the NFP CPP token id, its little name tag πislandβ the NFP CPP island id, where it lives, its whole vibe π΄
π DESCRIPTION π
okay so the whole point: this makes a 32-bit CPP identifier that represents the access you're about to make. think of it as a little wristband ποΈ that says exactly who's going where and what they're doing there.
these identifiers get passed as parameters to other NFP CPP functions β so like, they're everywhere. iykyk.
and here's a lil fun fact that lowkey matters: some CPP devices may allow wildcard identifiers to be specified. so yeah, not every field has to be super specific on every device, no cap π
π RETURN π
returns an NFP CPP ID π that's the whole thing, literally.
π₯ SEE ALSO π₯
- kernel file
./drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpp.hβ go read the source bestie, it's right there π NFP_CPP_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 a whole friend group of macros, obsessed π«Άβ¨
fr fr read the SEE ALSO list β half of it is the unpacking squad for the exact ID you just packed. you pack it withNFP_CPP_ISLAND_ID, you take it apart with the_ofones. it's giving teamwork π
aaaand that's the page!! πΈ source/version vibes: this one comes from ./drivers/net/ethernet/netrono... (the path got cut off, tragic, but you get it π) and it's dated October 2026, filed under Kernel API Manual β mwah, slay, periodt ππ
π
π¦ 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