cm_split_idlest_reg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cm_split_idlest_reg(9) β€” like, the Kernel API Manual era πŸŽ€

okay bestie, so this is a page from the Kernel API Manual for cm_split_idlest_reg(9), and I promise it's less scary than it sounds ✨


🌸 NAME 🌸

cm_split_idlest_reg β€” split that CM_IDLEST reg addr into its components, slay πŸ’…


✨ SYNOPSIS ✨

int cm_split_idlest_reg (struct clk_omap_reg *idlest_reg , s16
*prcm_inst , u8 *idlest_reg_id );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • idlest_reg β€” the CM_IDLEST* virtual address, literally. that's the one we're splitting 🫢
  • prcm_inst β€” a pointer to an s16 where we hand back the PRCM instance offset πŸ’–
  • idlest_reg_id β€” a pointer to a u8 where the CM_IDLESTx register ID goes back to you πŸŽ€

πŸ’€ DESCRIPTION πŸ’€

so you give it an absolute CM_IDLEST register address as idlest_reg, right? and it passes the PRCM instance offset back to the caller through prcm_inst, and the IDLEST register ID back through idlest_reg_id πŸ‘‘

Returns -EINVAL upon error, or 0 upon success. simple as that, no cap ✨

πŸ™ˆ XXX note, and this one's important: this function is only needed until absolute register addresses are removed from the OMAP struct clk records. it's giving temporary-icon energy, iykyk πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./arch/arm/mach-omap2/cm_common.c β€” go read it, bestie πŸ“–


and that's the whole page, periodt 🌈

πŸ’œ cute lil sign-off: this one lives at ./arch/arm/mach-omap2 and the date on it is October 2026 β€” iconic, no notes πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from