dev_pm_qos_add_notifier(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 on
  • notifier β€” 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:


bestie this one's from ./drivers/base/power, dated October 2026, and it's page dev_pm_qos_add_notifier(9) πŸ§šπŸ’– go forth and notifier slay πŸ’…βœ¨
πŸ“¦ where this page comes from