_init_opt_clks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… _init_opt_clks(9) β€” fresh out of the Kernel API Manual

okay so bestie, welcome to _init_opt_clks(9), straight from the Kernel API Manual, and it's giving "small function, big job" energy. she's short, she's sweet, she handles the optional clocks. let's get into it 🫢


✨ NAME ✨

_init_opt_clks β€” get a struct clk * for the hwmod's optional clocks

like yes, that's the whole vibe. it goes and gets you a struct clk * pointer for the hwmod's optional clocks. no cap πŸ’…


🌸 SYNOPSIS 🌸

int _init_opt_clks (struct omap_hwmod *oh );

that's it. one function, one argument, returns an int. iconic, honestly πŸŽ€


πŸŽ€ ARGUMENTS πŸŽ€

  • oh β€” this bad boy is a struct omap_hwmod *. that's your hwmod. she's the main character here and everything happens to her ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: _init_opt_clks gets called from _init_clocks. yep, that's the caller, that's the whole origin story.

what does she actually do? she populates the oh omap_hwmod_opt_clk clock pointers. lowkey the entire job. she fills in those clock pointers on your oh so they're not just sitting there empty πŸ™ˆ

and the returns? extremely simple:

  • 0 on success β€” she ate, no notes πŸ”₯
  • -EINVAL on error β€” something's off, go check your inputs πŸ’€
fr fr that's the whole description. no hidden options, no tiny print, no "see below for caveats." she's a short queen and she knows it πŸ‘‘

πŸ‘‘ SEE ALSO πŸ‘‘

first up, the source file itself, keep it sacred:

./arch/arm/mach-omap2/omap_hwmod.c

and then the whole extended friend group β€” every single one of these, no skips, no cutting for time πŸ’–

like… that's the whole hwmod cinematic universe and honestly we stan a well-cross-referenced page 🌈


and that's the page, bestie!! mwah πŸ’‹ this one's stamped from ./arch/arm/mach-omap2, dated October 2026, and it will forever answer to the name _init_opt_clks(9). go populate those clock pointers, you absolute icon πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from