ice_cpi_exec(9)
π ice_cpi_exec(9) π
okay so bestie, we're in the Kernel API Manual today and the star of the show is ice_cpi_exec(9) β yes that's the manual name, welcome to the function page of the day π
β¨ NAME β¨
ice_cpi_exec β literally just executes a CPI command. that's the whole vibe. no cap. π«
πΈ SYNOPSIS πΈ
int ice_cpi_exec (struct ice_hw *hw , u8 phy , const struct ice_cpi_cmd
*cmd , struct ice_cpi_resp *resp );
like, look at her. four params, one int return, main character energy π
π¦ ARGUMENTS π¦
hwβ pointer to the HW struct. your hardware bestie. the wholestruct ice_hwsituation π«Άphyβu8phy index of the port that this CPI action is being taken on. it's giving "which port, bestie" πcmdβ pointer to the command struct you want to execute.const struct ice_cpi_cmd *β read-only, hands off πrespβ pointer to a user allocated CPI response struct (struct ice_cpi_resp *). note the user allocated part β you're responsible for that memory, not her π
π DESCRIPTION π
so what does it actually do? this function executes a CPI request, and it does it with respect to the CPI handshake mechanism. like, the handshake is the whole point β she's not just yeeting a command into the void, she's doing the proper handshake ritual π€β¨
β RETURN β
0on success π- otherwise negative on error π
that's it, that's the whole contract. zero means slay, negative means something went sideways.
ngl bestie, the manpage doesn't tell you which negative values β it just says negative. so don't go inventing specifics, iykyk π
π SEE ALSO π
the kernel file in question lives right here, fr fr:
./drivers/net/ethernet/intel/ice/ice_cpi.c
and the whole CPI friend group π§:
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_set_cmd(9)ice_cpi_ena_dis_clk_ref(9)
and that's the page!! π brought to you from ./drivers/net/ethernet/intel/ice, dated October 2026, and filed under ice_cpi_exec(9) β mwah, go read the other ones too, ily 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