dev_pm_qos_update_request(9)
π 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 adev_pm_qosrequest 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 ans32, 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 notRPM_SUSPENDEDbefore using this function for requests of typeDEV_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:
__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_remove_request(9)dev_pm_qos_add_notifier(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)
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
- 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