idle_inject_unregister(9)
π¦ 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:
- it stops idle injection for the given control device π
- it unregisters its kthreads π§΅βοΈ
- 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 π
- Kernel file
./drivers/powercap/idle_inject.c struct idle_inject_thread(9)struct idle_inject_device(9)idle_inject_wakeup(9)idle_inject_timer_fn(9)idle_inject_fn(9)idle_inject_set_duration(9)idle_inject_get_duration(9)idle_inject_set_latency(9)idle_inject_start(9)idle_inject_stop(9)idle_inject_setup(9)idle_inject_should_run(9)idle_inject_register_full(9)idle_inject_register(9)
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
- 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