sci_clk_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– sci_clk_get(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” today's episode: sci_clk_get(9), or as I like to call it, the little xlate function that could ✨


🌸 NAME 🌸

sci_clk_get β€” the xlate function for getting clock handles, no cap πŸ•πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

struct clk_hw * sci_clk_get (struct of_phandle_args *clkspec , void
*data );

literally the whole vibe right there, bestie 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • clkspec β€” the device tree clock specifier, aka the little note that says which clock we're talking about 🌈
  • data β€” a pointer to the clock provider, the main character holding all the clock lore πŸ‘‘

⭐ DESCRIPTION ⭐

okay so here's the tea: sci_clk_get is the xlate function for retrieving clock TI SCI hw clock handles based on a device tree clock specifier 🎯

it gets called from the common clock framework whenever a corresponding of_clk_get call is executed β€” so like, you don't call it, the framework calls it, iykyk 🧚

and what does it give you? a pointer to the TI SCI hw clock struct πŸ’– … or an ERR_PTR value if it fails 😭 (yes, failure is a whole mood, and it's an ERR_PTR one, fr fr)


πŸ”₯ SEE ALSO πŸ”₯


ngl, that's the whole clock family in one SEE ALSO β€” go read your siblings, bestie, they're all iconic πŸ‘‘βœ¨

and that's a wrap, babe 🎬 source lives in ./drivers/clk/keystone, dated October 2026 β€” periodt πŸ’…πŸ“πŸ’œ

πŸ“¦ where this page comes from