dev_pm_qos_add_notifier(9)
β¨ dev_pm_qos_add_notifier(9) β¨
okay so bestie, welcome to the Kernel API Manual β this one's about dev_pm_qos_add_notifier, and it's literally the "hey, tell me when this changes" function for per-device PM QoS constraints π
πΈ NAME πΈ
dev_pm_qos_add_notifier β sets up a notification entry so you get pinged whenever the target value of a per-device PM QoS constraint changes π
π¦ SYNOPSIS π¦
int dev_pm_qos_add_notifier (struct device *dev , struct notifier_block
*notifier , enum dev_pm_qos_req_type type );
π ARGUMENTS π
devβ the target device for the constraint π this is the one you're keeping tabs onnotifierβ the notifier block, and guess what, you (the caller) manage it π«Άtypeβ the request type, iykyk
π DESCRIPTION π
So what it does: it registers the notifier into a notification chain that gets called upon changes to the target value for the device. basically your notifier is on the list and it will be summoned when the target value shifts π₯
and here's the cute part β if the device's constraints object doesn't exist when this routine is called, it will be created β¨ (or, if that fails, an error code will be returned π no cap).
π SEE ALSO π
Kernel file ./drivers/base/power/qos.c β plus a whole friend group of functions:
__dev_pm_qos_flags(9)dev_pm_qos_flags(9)__dev_pm_qos_resume_latency(9)dev_pm_qos_read_value(9)apply_constraint(9)dev_pm_qos_constraints_destroy(9)dev_pm_qos_add_request(9)__dev_pm_qos_update_request(9)dev_pm_qos_update_request(9)dev_pm_qos_remove_request(9)dev_pm_qos_remove_notifier(9)dev_pm_qos_add_ancestor_request(9)dev_pm_qos_expose_latency_limit(9)dev_pm_qos_hide_latency_limit(9)dev_pm_qos_expose_flags(9)dev_pm_qos_hide_flags(9)dev_pm_qos_update_flags(9)dev_pm_qos_get_user_latency_tolerance(9)dev_pm_qos_update_user_latency_tolerance(9)dev_pm_qos_expose_latency_tolerance(9)dev_pm_qos_hide_latency_tolerance(9)
bestie this one's from./drivers/base/power, dated October 2026, and it's pagedev_pm_qos_add_notifier(9)π§π go forth and notifier slay π β¨
π¦ 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