STRUCT OF_CLK_PROVIDER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the Kernel API Manual page for struct of_clk_provider(9) β€” the clock-provider registration struct that's lowkey the main character of this whole little page. πŸ’–βœ¨


πŸ’– NAME πŸ’–

struct of_clk_provider β€” the clock provider registration structure. that's it, that's the vibe, periodt. πŸŽ€

✨ SYNOPSIS ✨

       struct of_clk_provider {
           struct list_head link;
           struct device_node *node;
           struct clk *(*get)(struct of_phandle_args *clkspec, void *data);
           struct clk_hw *(*get_hw)(struct of_phandle_args *clkspec, void
       *data);
           void *data;
        };

okay so that's the struct in all its C-code glory, no cap. πŸ’…

🌸 Members 🌸

  • link β€” your entry in the global list of clock providers β€” yes, the list girlies. πŸ¦‹
  • node β€” a pointer to the device tree node of the clock provider. 🌈
  • get β€” the get-clock callback, bestie; it returns NULL or a struct clk for the given clock specifier. ✨
  • get_hw β€” the get-clk_hw callback; it returns NULL, ERR_PTR, or a struct clk_hw for the given clock specifier. πŸ”₯
  • data β€” the context pointer that gets passed into the get callback. 🫢

πŸ’… SEE ALSO πŸ’…

okay bestie, the lore continues in these pages and files β€” every single one is here, no skipping: πŸ‘‘

mwah πŸ’‹ β€” this lil' page comes from ./drivers/clk, dated October 2026, and it's all about struct of_clk_provider(9). bye bestie! πŸŽ€

πŸ“¦ where this page comes from