ice_is_primary(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_is_primary(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” today's main character is ice_is_primary, and honestly? she's doing a vibe check on your hardware 🫢


✨ NAME ✨

ice_is_primary β€” the girl who checks if a given device belongs to the primary complex πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

bool ice_is_primary (struct ice_hw *hw );

that's it. one function, one argument, zero drama (allegedly) πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • hw β€” pointer to HW structure. that's your hardware bestie, she's the whole point here 🌸

⭐ DESCRIPTION ⭐

so what she does is: check if the given PF/HW is running on the primary complex in a multi-NAC configuration. literally that's the whole gig πŸ’… like she looks at your PF/HW and goes "are you the primary one, or are you being extra?" and tells you the truth, no cap πŸ”₯


🌈 RETURN 🌈

returns true if the device is dual, and false otherwise β€” but plot twist, it's always true for non-E825 devices πŸ™ˆ so if you're not on E825, you already know the answer, bestie, go home 🧚


πŸ‘‘ SEE ALSO πŸ‘‘

like, that's the whole friend group right there β€” go say hi to all of them, they're iconic πŸ’œ


ngl, none of this is scary, it's just a bool check. you got this. periodt. πŸ’€βœ¨

and that's a wrap, bestie! this page came from ./drivers/net/ethernet/intel/ice and it's dated October 2026 β€” so mark your calendar, screenshot it, frame it, whatever πŸŽ€ bye pookie! πŸ¦‹

πŸ“¦ where this page comes from