_add_hwmod_clocks_clkdev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… _add_hwmod_clocks_clkdev(9) β€” the kernel API manual, but make it make sense

okay bestie, welcome to the _add_hwmod_clocks_clkdev page from the Kernel API Manual ✨ this one's a kernel-internals girlie, so grab a lil snack and let's get into it πŸ“


🌸 NAME 🌸

_add_hwmod_clocks_clkdev β€” adds a clkdev entry for the hwmod optional clocks and the main clock, no cap πŸ’…


✨ SYNOPSIS ✨

void _add_hwmod_clocks_clkdev (struct omap_device *od , struct omap_hwmod *oh );

like, that's the whole vibe. void, two pointers, we move πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • od β€” a struct omap_device *od. yeah that's literally it, that's the whole description, the manpage said so and I'm not gonna invent lore πŸ™ˆ
  • oh β€” a struct omap_hwmod *oh. same energy. pointer. hwmod. iconic πŸ‘‘

🧚 DESCRIPTION 🧚

so here's what she does πŸ’– for the main clock and for every optional clock present per hwmod per omap_device, this function adds an entry into the clkdev table shaped like this:

<dev-id=dev_name, con-id=role>

…but only if it does not exist already. no duplicates, we're not messy like that 🫢

and why do we care? because this is what lets drivers get a pointer to their optional clocks based on their role, by calling:

clk_get(<dev*>, <role>)

for the main clock, a "fck" alias is used β€” that's the little nickname, iykyk ⭐

and the return value? none. no return value, she returns nothing, void is the whole personality. periodt πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

go off, read them all, the omap2 section of the kernel is right there and it ate 🌈


ngl this page is short but she's still doing main character energy in ./arch/arm/mach-omap2, October 2026, kernel API manual edition πŸ§šβ€β™€οΈπŸ’œ

mwah, that's the whole page, love u, bye πŸŽ€

πŸ“¦ where this page comes from