dev_pm_qos_update_request(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dev_pm_qos_update_request(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual, section 9 β€” this is the glow-up page for dev_pm_qos_update_request, and yes it's giving "small function, big responsibilities" energy. let's get into it πŸŽ€


✨ NAME ✨

dev_pm_qos_update_request β€” modifies an existing qos request. that's it, that's the whole vibe check: it modifies, it does not create, it does not destroy. it's the middle child of the qos family and honestly? iconic. πŸ‘‘


🌸 SYNOPSIS 🌸

int dev_pm_qos_update_request (struct dev_pm_qos_request *req , s32
new_value );

look at her. returns an int, takes two things, slays. πŸ¦‹


🫢 ARGUMENTS 🫢

  • req β€” handle to list element holding a dev_pm_qos request to use. like, this is your little ticket to the request you already made, bestie. no ticket, no entry. 🎟️
  • new_value β€” defines the qos request. it's an s32, it's the new number, it's literally setting the whole mood of the constraint. ✨

πŸ’– DESCRIPTION πŸ’–

Updates an existing dev PM qos request along with updating the target value. so like, the request already exists (you made it earlier with dev_pm_qos_add_request), and this is you going "hey bestie, change of plans, new number please." πŸ’…

Attempts are made to make this code callable on hot code paths. that's right β€” no cap, this thing is built to run fast and often, so don't be shy with it. πŸ”₯

the returns, and honestly this is the part everyone asks about, so listen up:

  • 1 β€” the aggregated constraint value has changed. a real shift, a genuine moment, main character energy. πŸ‘‘
  • 0 β€” the aggregated constraint value has not changed. same as it ever was. a little anticlimactic but we respect it. πŸ’€
  • -EINVAL β€” in case of wrong parameters. you passed something cursed. πŸ™ˆ
  • -ENODEV β€” if the device has been removed from the system. she's gone, the device left the chat. 😭
⚠️ important bestie!! Callers should ensure that the target device is not RPM_SUSPENDED before using this function for requests of type DEV_PM_QOS_FLAGS. seriously. do the vibe check on the device state first. not me warning you twice. 🌈

🧚 SEE ALSO 🧚

Kernel file ./drivers/base/power/qos.c β€” and the whole friend group, fr fr:

iykyk πŸ’œ


okay that's the page!! source: ./drivers/base/power, dated October 2026, still serving looks in the Kernel API Manual πŸŽ€ go update those requests, bestie, you're literally gonna slay πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from