freq_qos_apply(9)
π freq_qos_apply(9) β the Kernel API Manual, bestie edition π
okay so this is freq_qos_apply(9) from the Kernel API Manual, and it's literally the little helper that handles your frequency QoS requests β adding them, tweaking them, yeeting them. let's get into it β¨
πΈ NAME πΈ
freq_qos_apply β add/modify/remove frequency QoS request. that's the whole vibe. she does three things and she does them well π
π¦ SYNOPSIS π¦
int freq_qos_apply(struct freq_qos_request *req, enum pm_qos_req_action action, s32 value);
it returns an int, she takes three things, and yes the parameter list is a little long β main character energy, she's allowed π«Ά
β ARGUMENTS β
reqβ the constraint request you're applying. this is the request, the one getting the glow-up (or the goodbye) πactionβ the action to perform. your options are add / update / remove, so basically it's giving "make it exist, change it up, or take it out back" πvalueβ the value to assign to the QoS request. the actual number going in π
π₯ DESCRIPTION π₯
okay so listen. this one is only meant to be called from inside pm_qos β not from drivers. like. drivers, do not. i am begging π that's the entire warning, it's short but she means it.
bestie if you're writing a driver and you're about to call this β no you're not π that's not your lane.
π SEE ALSO π
the whole friend group, plus the file they all live in: ./kernel/power/qos.c π§
pm_qos_read_value(9)pm_qos_update_target(9)pm_qos_flags_remove_req(9)pm_qos_update_flags(9)cpu_latency_qos_limit(9)cpu_latency_qos_request_active(9)cpu_latency_qos_add_request(9)cpu_latency_qos_update_request(9)cpu_latency_qos_remove_request(9)cpu_wakeup_latency_qos_limit(9)freq_constraints_init(9)freq_qos_read_value(9)freq_qos_add_request(9)freq_qos_update_request(9)freq_qos_remove_request(9)freq_qos_add_notifier(9)freq_qos_remove_notifier(9)
and that's the page!! this icon comes to you courtesy of ./kernel/power, dated October 2026 β mwah, love u, read ur QoS docs ππβ
π¦ 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