ice_find_recp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_find_recp(9) β€” the recipe finder, bestie ✨

okay so real talk, this is a page out of the Kernel API Manual, section 9, and it's genuinely one of the shorter ones β€” but it still ate, so let's go 🫢


🌸 NAME 🌸

ice_find_recp β€” find a recipe πŸ“


✨ SYNOPSIS ✨

u16 ice_find_recp (struct ice_hw *hw , struct ice_prot_lkup_ext
*lkup_exts , const struct ice_adv_rule_info *rinfo , bool is_add );

like yes that's the whole signature, no cap πŸ’€


πŸŽ€ ARGUMENTS πŸŽ€

  • hw β€” pointer to the hardware structure, the main character of this whole operation πŸ‘‘
  • lkup_exts β€” the extension sequence you're trying to match against, iykyk πŸ”
  • rinfo β€” info about the rule, like its priority and action info β€” basically the whole vibe check of what this rule is πŸ’…
  • is_add β€” a flag for adding a recipe, bool so it's giving simple-and-iconic 🌈

πŸ’– DESCRIPTION πŸ’–

So what does it actually do? It returns the index of the matching recipe. That's it, that's the whole thing. Slay. ✨

But bestie, listen β€” if it doesn't find a match? It returns ICE_MAX_NUM_RECIPES instead 😭 not a -1, not an error code, the whole ICE_MAX_NUM_RECIPES vibe. Remember that, fr fr. It's your "not found" answer and you do not want to treat it like a real index πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

okay so this list is long β€” it's giving whole-family-reunion energy β€” but every single one of these is a sibling of the same ./drivers/net/ethernet/intel/ice kernel file, so here's the full squad, no gatekeeping 🌸


okay bestie, quick recap before you go: matching recipe found β†’ you get its index πŸ’–. not found β†’ you get ICE_MAX_NUM_RECIPES and you deal with it πŸ™ˆ

and that's the whole page, we're done here πŸ’œ this one lives in ./drivers/net/ethernet/intel/ice, dated October 2026 β€” mwah, go read the other ice_*(9) pages, they're all waiting for you πŸ§šπŸŽ€

πŸ“¦ where this page comes from