idle_inject_unregister(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ idle_inject_unregister(9) β€” the kernel API manual, bestie edition πŸ¦‹

okay so this one is from the kernel API manual, section 9, and it's literally the cleanup girlie of the idle injection family πŸ’…


✨ NAME ✨

idle_inject_unregister β€” unregister idle injection control device πŸŽ€


🌸 SYNOPSIS 🌸

void idle_inject_unregister (struct idle_inject_device *ii_dev );

like, that's the whole call. no return value, no drama, just vibes and a pointer ✨


πŸ’– ARGUMENTS πŸ’–

  • ii_dev β€” the idle injection control device you wanna unregister 🫢 that's the one getting sent home.

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so bestie, listen πŸ‘‚ β€” this function does three whole things and she does them in order:

  1. it stops idle injection for the given control device πŸ›‘
  2. it unregisters its kthreads πŸ§΅βœ‚οΈ
  3. it frees the memory allocated when that device was created πŸ—‘οΈβœ¨

so yeah, it's giving full cleanup, main character energy, nothing left behind πŸ’€ no cap.

ngl this is a destructive-ish operation in spirit β€” it's tearing down the device's kthreads and freeing that device's memory, so this is not a "call it twice for fun" situation 😭 it's the inverse of setting the thing up, periodt.

🌈 SEE ALSO 🌈

like the whole friend group fr fr 🫢 go read them all, iykyk πŸ’œ


this page lives in ./drivers/powercap, dated October 2026, and it's idle_inject_unregister(9) β€” mwah, slay, go free that memory bestie πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from