_set_slave_idlemode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… _set_slave_idlemode β€” straight out of the Kernel API Manual ✨

okay bestie, welcome to the group chat where we talk about kernel internals 🫢 this one is a little internal helper from the OMAP hwmod world, and honestly? it's giving "quietly does its job" energy πŸ’–


πŸŽ€ NAME πŸŽ€

_set_slave_idlemode β€” sets the OCP_SYSCONFIG SIDLEMODE field in @v πŸ’«


✨ SYNOPSIS ✨

int _set_slave_idlemode (struct omap_hwmod *oh , u8 idlemode , u32 *v );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • oh β€” a struct omap_hwmod *, the hwmod we're talking about πŸ’œ
  • idlemode β€” the SIDLEMODE field bits, iykyk 🌸
  • v β€” pointer to the register contents we're gonna modify πŸŽ€

🌈 DESCRIPTION 🌈

So like, this function updates the slave idle mode bits in v so they become idlemode for the oh hwmod. That's it, that's the whole vibe πŸ’…

⚠️ big caveat bestie: it does not write to the hardware. like at all. it's just touching the buffer, no cap 😭

Returns -EINVAL upon error, or 0 upon success. slay ✨


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./arch/arm/mach-omap2/omap_hwmod.c β€” and here's the whole friend group, fr fr:

like yes that's a LOT of friends but we love a big found family πŸ§šπŸ’–


okay that's the whole page bestie, mwah πŸ’‹ this cutie lives under ./arch/arm/mach-omap2, the date on it is October 2026, and it's brought to you by the Kernel API Manual. go be iconic with your hwmod bits πŸ‘‘βœ¨

πŸ“¦ where this page comes from