freq_qos_add_request(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– freq_qos_add_request(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” yes, that's the manual name, and yes, we're reading manpages together now, this is our era ✨


🌸 NAME 🌸

freq_qos_add_request β€” Insert new frequency QoS request into a given list. That's it, that's the whole vibe: you're adding a request, it goes in a list, slay πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

int freq_qos_add_request (struct freq_constraints *qos , struct
freq_qos_request *req , enum freq_qos_req_type type , s32 value );

look at her. four arguments, returning an int, absolute main character energy πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • qos β€” the constraints you're updating. this is the thing getting the glow-up πŸ’–
  • req β€” a preallocated request object. preallocated, bestie β€” you bring the object, the function does not make one for you, no cap.
  • type β€” the request type. which flavour of request are we doing today πŸ“
  • value β€” the request value. the actual number, the moment, the whole point.

✨ DESCRIPTION ✨

Insert a new entry into the qos list of requests, then recompute the effective QoS constraint value for that list, then initialize the req object. three things, one call, we love an efficient icon 🌈

important, don't skip this one: the caller needs to save that object for later use in updates and removal. like, you have to hold onto it. the function is not keeping track for you. if you lose it, that's on you, and it will lowkey haunt you 😭

and here's the return situation, pay attention:

  • returns 1 if the effective constraint value has changed πŸ”₯
  • returns 0 if the effective constraint value has not changed 🫢
  • returns a negative error code on failures πŸ’€

three outcomes, no ambiguity, we stan a predictable king ⭐


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./kernel/power/qos.c, and then the whole friend group:

that's seventeen functions. seventeen!! go read them, i'll wait 🧚


and that's the page, bestie πŸ’œ this one comes from ./kernel/power, dated October 2026 β€” so go forth, add your request, save your object, and remember: the effective constraint value might change and that's literally fine πŸŒΈπŸ’–βœ¨

πŸ“¦ where this page comes from