dev_pm_domain_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– dev_pm_domain_set(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual entry for dev_pm_domain_set β€” it's giving β€œtiny function, major PM-domain energy” ✨


✨ NAME ✨

dev_pm_domain_set β€” sets the PM domain of a device. periodt.


πŸŽ€ SYNOPSIS πŸŽ€

void dev_pm_domain_set (struct device *dev , struct dev_pm_domain *pd );

🫢 ARGUMENTS 🫢

  • dev β€” the device whose PM domain is getting set, obvi.
  • pd β€” the PM domain to set it to, or NULL. both are valid, no cap.

🌸 DESCRIPTION 🌸

This sets the PM domain that the device belongs to. Lowkey important: a device’s PM domain needs to be set before its probe finishes β€” meaning before it’s bound to a driver. So like, handle it early, bestie 🫢

⚠️ This function must be called with the device lock held. That part is not optional, fr fr.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./drivers/base/power/common.c β€” and the whole friend group is:


mwah πŸ’‹ β€” signed from ./drivers/base/power, dated October 2026, and it’s all about dev_pm_domain_set(9) 🫢✨

πŸ“¦ where this page comes from