_init_interface_clks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– _init_interface_clks β€” the interface-clock getter (kernel API manual, section 9) πŸŽ€

okay so bestie, gather round, because this one is short but it matters. This is the man page for _init_interface_clks, straight out of the Kernel API Manual, section 9. It's giving "small function, big job" energy and honestly? obsessed. πŸ’…


✨ NAME ✨

_init_interface_clks β€” grab a struct clk * for the hwmod's interface clks. literally what it says on the tin. 🫢


🌸 SYNOPSIS 🌸

int _init_interface_clks (struct omap_hwmod *oh );

no cap, that's the whole signature. one argument, one int back. iconic.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • oh β€” a struct omap_hwmod *. that's it, that's the tea. it's the hwmod we're doing clock stuff for. πŸ‘‘

πŸ’« DESCRIPTION πŸ’«

so this is the lowkey underrated one: _init_interface_clks gets called from _init_clocks (yes, the one with the similar-but-not-same name β€” iykyk, don't mix them up bestie 😭).

what does it actually do? it populates the oh OCP slave interface clock pointers. that's the whole vibe. the oh you handed it gets its interface clock pointers filled in. πŸŽ€

and the return value? simple, clean, main character energy:

  • 0 on success ✨
  • -EINVAL on error πŸ’€

that's it. no weird edge cases listed here, no secret flags. just "did it work or nah".

ngl, this is one of those tiny internal helpers where the man page is basically a vibe check: what it's called from, what it fills in, what it returns. all three facts are above, and we are not losing any of them. πŸ’œ

πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives at ./arch/arm/mach-omap2/omap_hwmod.c, and okay bestie, the related-pages list here is long β€” absolutely ate. here they all are, in the original order, not one dropped:


and that's the whole page, bestie β€” go populate some interface clock pointers, you got this πŸ§šπŸ’–

oh and the sign-off receipts, because we always cite our sources: this one comes from ./arch/arm/mach-omap2, stamped October 2026, and it's _init_interface_clks(9) all the way down. mwah πŸ’‹πŸŒΈ

πŸ“¦ where this page comes from