pwrdm_read_logic_pwrst(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pwrdm_read_logic_pwrst πŸ’…

okay so this is a page from the Kernel API Manual (yes, the pwrdm_read_logic_pwrst(9) one, bestie, you're in the right place 🫢) and it's literally about peeking at what a powerdomain's logic chunk is gonna do when it goes into retention. tiny function, big main character energy. let's get into it ✨


✨ NAME ✨

pwrdm_read_logic_pwrst β€” get current powerdomain logic retention power state 🌸

like, the current one. not the next one, not the previous one. we're living in the now, periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

int pwrdm_read_logic_pwrst (struct powerdomain *pwrdm );

that's it. one argument. she's lowkey minimal and we respect that πŸ’œ


πŸŽ€ ARGUMENTS πŸŽ€

  • pwrdm β€” a struct powerdomain *, and it's the thing you're passing in to get the current logic retention power state for. yes bestie it's a pointer to a struct powerdomain. no we are not overthinking it. 🧚

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea β˜• β€” this function returns the power state that the logic portion of the powerdomain pwrdm is gonna enter whenever that powerdomain enters retention. that's the vibe. that's the whole job.

and check the error handling because she's responsible:

  • if the powerdomain pointer is null β†’ returns -EINVAL 😭 (like, girl, you gave her nothing)
  • upon success β†’ returns the logic retention power state πŸ’–

that's it. no cap. iconic behaviour, honestly. ⭐


🌈 SEE ALSO 🌈

everything's in the kernel file ./arch/arm/mach-omap2/powerdomain.c, and there are so many siblings, it's giving huge family reunion πŸ˜­πŸ’€:

iykyk πŸ‘€ go read them, they're all slaying in their own way πŸ’…


🫢 tiny reminder bestie: this whole thing lives under ./arch/arm/mach-omap2, it's dated October 2026, and it's brought to you by the Kernel API Manual. that's the source, that's the version, that's the date β€” write it down or whatever πŸ’–βœ¨πŸŽ€
πŸ“¦ where this page comes from