clk_hw_get_parent_index(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

Okay so, bestie, this is the Kernel API Manual page for clk_hw_get_parent_index(9) β€” and it is literally the friend who tells you the parent clock’s index. clk_hw_get_parent_index β€” returns the index of the parent clock, periodt. πŸ’…

✨ SYNOPSIS ✨

int clk_hw_get_parent_index (struct clk_hw *hw );

🌸 ARGUMENTS 🌸

  • hw β€” the clk_hw associated with the clk being consumed, iykyk 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

So it fetches and returns the index of the parent clock. That’s the whole vibe. But if the given clock does not have a current parent, it returns -EINVAL β€” yes, that error, no cap 😭. Not me pretending that detail isn’t important, because it absolutely is.

πŸ‘‘ SEE ALSO πŸ‘‘

Like, go read this kernel file and then vibe through the whole clk crew, in order, fr fr:


Signed off from the ./drivers/clk source corner, October 2026, the clk_hw_get_parent_index(9) manual-page edition β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from