ice_cpi_ena_dis_clk_ref(9)
π ice_cpi_ena_dis_clk_ref β a whole vibe (from the Kernel API Manual, bestie)
okay so picture this: you're deep in the ice driver, you've got a PHY, you've got a Tx reference clock, and you just need it on or off. that's the whole plot. this function is the girly who handles it. β¨
β¨ SYNOPSIS β¨
int ice_cpi_ena_dis_clk_ref (struct ice_hw *hw , u8 phy , enum
ice_e825c_ref_clk clk , bool enable );
like, that's literally it. four things in, one int out. she's simple, she's iconic, she serves. π
πΈ ARGUMENTS πΈ
hwβ pointer to the HW struct. the main character. everything runs through her. πphyβ the phy index of the port whose Tx reference clock you're enabling or disabling. which port? this port, bestie. π¦clkβ the Tx reference clock you wanna enable or disable. type isenum ice_e825c_ref_clk, so pick from the menu, don't freestyle. πenableβ bool value to enable or disable the Tx reference clock.true= on,false= off. the whole duality of woman, honestly. π
π₯ DESCRIPTION π₯
so what does she actually do? this function executes a CPI request to enable or disable a specific Tx reference clock on the given PHY. that's the tea. no extra steps, no surprises, she just sends the request and minds her business. periodt. π
β RETURN β
0on success π- negative error code on failure π
ngl, always check the return value. she will tell you when things went sideways, and ignoring her is not the flex you think it is. π
π SEE ALSO π
her friends! her little circle! go say hi to:
- Kernel file
./drivers/net/ethernet/intel/ice/ice_cpi.c 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_set_cmd(9)
iykyk π
and that's the page, bestie π«Ά this one came out of ./drivers/net/ethernet/intel/ice, dated October 2026 β go read the source, it's giving main character energy fr fr ππ§ββοΈ
π¦ 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