dev_pm_genpd_add_notifier(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

dev_pm_genpd_add_notifier(9) 🫢

okay bestie, this one is from the Kernel API Manual, and it’s literally about adding a genpd power on/off notifier for a device. Slay.


✨ NAME ✨

dev_pm_genpd_add_notifier β€” Add a genpd power on/off notifier for @dev


🌸 SYNOPSIS 🌸

int dev_pm_genpd_add_notifier (struct device *dev , struct notifier_block *nb );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” Device that should be associated with the notifier
  • nb β€” The notifier block to register

πŸ’… DESCRIPTION πŸ’…

Users may call this function to add a genpd power on/off notifier for an attached dev. Only one notifier per device is allowed β€” no cap, that’s the rule. The notifier is sent when genpd is powering on/off the PM domain. ✨

Heads up, bestie: it is assumed that the user guarantee that the genpd wouldn’t be detached while this routine is getting called. That’s the vibe check 😭

Returns 0 on success and negative error values on failures.


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/pmdomain/core.c


πŸ’– byeee bestie! This page lives in the Kernel API Manual, source/version is ./drivers/pmdomain, dated October 2026, and yes the title stays dev_pm_genpd_add_notifier(9). Periodt. 🌈

πŸ“¦ where this page comes from