dev_pm_domain_set(9)
π 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, orNULL. 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:
dev_pm_get_subsys_data(9)dev_pm_put_subsys_data(9)dev_pm_domain_attach(9)dev_pm_domain_attach_by_id(9)dev_pm_domain_attach_by_name(9)dev_pm_domain_attach_list(9)devm_pm_domain_detach_list(9)devm_pm_domain_attach_list(9)dev_pm_domain_detach(9)dev_pm_domain_detach_list(9)dev_pm_domain_start(9)dev_pm_domain_set_performance_state(9)
mwah π β signed from ./drivers/base/power, dated October 2026, and itβs all about dev_pm_domain_set(9) π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms