_clkctrl_idlest(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… _clkctrl_idlest(9) β€” Kernel API Manual, section 9 πŸŽ€

okay so bestie, welcome to the group chat for _clkctrl_idlest(9) from the Kernel API Manual. this one's a lil cutie β€” it reads a CM_*_CLKCTRL register and hands you back the IDLEST bitfield, all nice and shifted down to bit 0. let's get into it ✨


✨ NAME ✨

_clkctrl_idlest β€” read a CM_*_CLKCTRL register, then mask & shift the IDLEST bitfield πŸ¦‹


🌸 SYNOPSIS 🌸

u32 _clkctrl_idlest (u8 part , u16 inst , u16 clkctrl_offs );

like, literally that's the whole vibe. three args in, a u32 out πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • part β€” the PRCM partition ID, aka which partition the CM_CLKCTRL register lives in πŸ—ΊοΈ
  • inst β€” the CM instance register offset, bestie β€” that's the *_INST macro πŸ‘‘
  • clkctrl_offs β€” the module clock control register offset, which is the *_CLKCTRL macro 🎯

πŸ’œ DESCRIPTION πŸ’œ

so what does it actually do? it returns the IDLEST bitfield of a CM_*_CLKCTRL register, shifted down to bit 0. that's it, that's the whole function, and honestly? she ate πŸ’…πŸ”₯

ngl the shifting is the main character energy here β€” the bitfield comes back already sitting at bit 0, so you don't gotta do the mask-and-shift dance yourself 🫢

🌈 SEE ALSO 🌈

the whole friend group, fr fr β€” starting with the kernel file ./arch/arm/mach-omap2/cminst44xx.c πŸ’–


and that's the page, bestie!! 🧚 this lil icon lives over in ./arch/arm/mach-omap2, and the version info is dated October 2026. go read the source, ily, bye πŸ’œβœ¨

πŸ“¦ where this page comes from