ice_cpi_set_cmd(9)
π 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 workingopcodeβ the CPI command opcode π this is the "what are we even doing" of it allphyβ phy index the CPI command is applied for πΈ which phy we're talking toport_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 π₯
0on 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:
ice_cpi_get_dest_dev(9)ice_cpi_write_phy(9)ice_cpi_read_phy(9)ice_cpi_wait_req0_ack0(9)ice_cpi_wait_ack(9)ice_cpi_req0(9)ice_cpi_exec_cmd(9)ice_cpi_phy_lock(9)ice_cpi_exec(9)ice_cpi_ena_dis_clk_ref(9)
ok real talk: this page is a(9)section manpage, so it's kernel-internal API β you're not gonna find it inmanon 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
- 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