pm_qos_update_target(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pm_qos_update_target πŸ’…

okay so bestie, welcome to the Kernel API Manual, section 9 β€” this is the page for pm_qos_update_target, and it's genuinely one of those little functions that's doing a LOT behind the scenes. PM QoS constraint request list maintenance, but make it cute. πŸŽ€


✨ NAME ✨

pm_qos_update_target β€” update a list of PM QoS constraint requests. that's it, that's the whole vibe. πŸ’–


🌸 SYNOPSIS 🌸

int pm_qos_update_target (struct pm_qos_constraints *c , struct
plist_node *node , enum pm_qos_req_action action , int value );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • c β€” the list of PM QoS requests you're working with. this is the main character list, bestie. πŸ‘‘
  • node β€” the target list entry. the specific lil plist node you're here to fuss over. ✨
  • action β€” what you're actually doing to it: add, update or remove. pick one, no cap. πŸ’…
  • value β€” the new request value for the target list entry. the number that's about to be somebody's whole personality. πŸ”₯

🌈 DESCRIPTION 🌈

so here's the tea: this function updates the given list of PM QoS constraint requests, c, by carrying out an action that involves the node list entry and the value on it. like, it's doing the work on that one specific node inside that one specific list. periodt. πŸ’œ

the recognized values of action are literally these three, and you need to know all of them:

  • PM_QOS_ADD_REQ β€” store value in node and add it to the list. she's new here and she's arriving with data. πŸ¦‹
  • PM_QOS_UPDATE_REQ β€” remove node from the list, store value in it, and add it to the list again. yes, she leaves and comes back hotter. iconic behavior tbh. πŸ”₯
  • PM_QOS_REMOVE_REQ β€” remove node from the list and ignore value. goodbye, we don't need the number, we just need you GONE. πŸ’€
ngl, that middle one is doing an entire round trip just to change a value, but that's genuinely what the manpage says, so we respect it. 🫢

⭐ RETURN ⭐

1 if the aggregate constraint value has changed, 0 otherwise. so basically: did the overall constraint number shift? yes or no. that's the whole return. simple, clean, slay. ✨


🧚 SEE ALSO 🧚

the reading list, bestie β€” go read these next, iykyk:


and that's the page!! πŸŽ€ this one came out of ./kernel/power and it's dated October 2026 β€” so go forth, update your QoS targets, and remember: the aggregate constraint value changing is the only thing that gets you a 1. mwah πŸ’‹πŸŒΈ

πŸ“¦ where this page comes from