ice_cpi_set_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_cpi_set_cmd(9) β€” from the Kernel API Manual, bestie edition πŸŽ€

okay so picture this: you're deep in the kernel, you're in the Intel ice driver, and you need to actually run a CPI SET command. That's it. That's the whole function. It's giving "small but mighty" and honestly? Obsessed. ✨


🌸 NAME 🌸

ice_cpi_set_cmd β€” literally just executes the CPI SET command, no cap


πŸ¦‹ SYNOPSIS πŸ¦‹

int ice_cpi_set_cmd (struct ice_hw *hw , u8 opcode , u8 phy , u8
port_lane , u16 data );

she takes five args and she returns an int, periodt πŸ’…


✨ ARGUMENTS ✨

  • hw β€” pointer to the HW struct 🫢 like, the whole hardware context, she needs to know where she's working
  • opcode β€” the CPI command opcode πŸ‘‘ this is the "what are we even doing" of it all
  • phy β€” phy index the CPI command is applied for 🌸 which phy we're talking to
  • port_lane β€” ephy index the CPI command is applied for πŸ¦‹ (yes bestie, ephy β€” not a typo, that's a different thing)
  • data β€” CPI opcode context specific data πŸ“ the payload, the extra lil somethin' that the opcode needs

πŸ”₯ RETURN πŸ”₯

  • 0 on success β€” slay, she ate, everything worked πŸ’–
  • negative error code on failure 😭 β€” something went sideways, and the number will tell you how

🌈 SEE ALSO 🌈

the kernel file, in all her glory: ./drivers/net/ethernet/intel/ice/ice_cpi.c πŸ“

and the whole CPI friend group, fr fr β€” go say hi to:


ok real talk: this page is a (9) section manpage, so it's kernel-internal API β€” you're not gonna find it in man on your laptop unless you've got the kernel docs set up. iykyk πŸ’€

and that's the whole vibe check, bestie 🧚 this came out of ./drivers/net/ethernet/intel/ice and it's dated October 2026 β€” go forth and execute your CPI SET commands responsibly πŸ’œπŸ’…

πŸ“¦ where this page comes from