NFP_CPP_INTERFACE_UNIT_of(9)
π NFP_CPP_INTERFACE_UNIT_of(9) π
okay bestie, this is a page from the Kernel API Manual β yes, the kernel, the big serious one β and it's about getting the interface unit out of an NFP Interface ID. tiny function, huge group-chat energy. let's go π«Ά
β¨ NAME β¨
NFP_CPP_INTERFACE_UNIT_of β get the interface unit πΈ
like, that's literally it. that's the whole job. she extracts one little field for you and she does it fabulously. π
π¦ SYNOPSIS π¦
NFP_CPP_INTERFACE_UNIT_of (interface );
no cap, that's the whole call. one argument, in and out, main character energy. β¨
π ARGUMENTS π
interfaceβ the NFP Interface ID π (yes queen, the ID itself, not a pointer to it, not a struct, the ID. we love a straightforward parameter.)
π RETURN π
the unit of that NFP Interface ID, periodt. β
she gives you back the interface's unit and then she's done β no side quests, no hidden surprises, just the unit. iykyk π§
lowkey obsessed with how small this is. one job. one return value. iconic behavior fr fr.
π SEE ALSO π
okay this is the friend group, and they're all linked together, so let me introduce everyone π:
- the kernel file
./drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpp.hβ the home base, the hangout spot π NFP_CPP_ID(9)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_CHANNEL_of(9)nfp_cppcore_pcie_unit(9)struct nfp_cpp_operations(9)
all the _of girlies are literally the same vibe β they each pull a different field out of an ID. this one just happens to be the unit one. π
and that's the page!! go forth and get your interface units, bestie π
πΈ this one came from ./drivers/net/ethernet/netrono..., dated October 2026, and it's still filed under NFP_CPP_INTERFACE_UNIT_of(9) β mwah, bye! ππ
π¦ 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