dev_pm_genpd_rpm_always_on(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ dev_pm_genpd_rpm_always_on(9) ✨

okay bestie, this page is from the Kernel API Manual, section 9, and it's all about one very specific PM-domain mood: whether a domain is allowed to power off. iykyk πŸ’…


🌸 NAME 🌸

dev_pm_genpd_rpm_always_on β€” control if the PM domain can be powered off. That's the whole vibe.

πŸ¦‹ SYNOPSIS πŸ¦‹

int dev_pm_genpd_rpm_always_on (struct device *dev , bool on );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” Device for which the PM domain may need to stay on for.
  • on β€” Value to set or unset for the condition.

πŸ’… DESCRIPTION πŸ’…

So for some usecases a consumer driver requires its device to remain power-on from the PM domain perspective during runtime. This function allows the behaviour to be dynamically controlled for a device attached to a genpd. Slay, dynamic control, we love to see it. ✨

It is assumed that the users guarantee that the genpd wouldn't be detached while this routine is getting called. Like pls don't yank the domain out from under us while we're in here, bestie 🫢

⭐ RETURN ⭐

Returns 0 on success and negative error values on failures. Zero is the success kiss; negatives are the sad little error gremlins. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/pmdomain/core.c


made with πŸ’– from the ./drivers/pmdomain source tree, dated October 2026, page dev_pm_genpd_rpm_always_on(9) β€” byeee bestie πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from