ice_cpi_ena_dis_clk_ref(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 is enum 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 ⭐

  • 0 on 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:

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