freeze_kernel_threads(9)
β¨ freeze_kernel_threads β a.k.a. "go to the refrigerator" β¨
Ok so bestie, welcome to the freeze_kernel_threads(9) page from the Kernel API Manual π
this one's short and sweet, but it's lowkey important so likeβ¦ pay attention π«Ά
π NAME π
freeze_kernel_threads β literally just making freezable kernel threads go to the refrigerator π§β¨
Like yes, that's the whole vibe. The kernel threads get sent to chill. No cap.
πΈ SYNOPSIS πΈ
int freeze_kernel_threads (void );
π¦ ARGUMENTS π¦
voidβ no arguments, bestie. None. Zero. Not a single one π it just takes nothing and does its thing.
π DESCRIPTION π
Okay so here's the tea β on success it returns 0 β iconic, we love a clean return π
But on failure? It returns -errno, and β οΈ only the kernel threads are thawed β not the userspace tasks. Ngl this is on purpose: it gives the caller a chance to do any additional cleanups (if any) before thawing the userspace tasks. So basically the kernel threads come out of the fridge first and everyone else is still chilling π§
So, heads up: it is the responsibility of the caller to thaw the userspace tasks, when the time is right π like the caller is the main character here and has to handle that part. Periodt.
π SEE ALSO π
- Kernel file
./kernel/power/process.cπ freeze_processes(9)π₯
That's literally the whole page, bestie π short king of a manpage fr fr. Go thaw those userspace tasks when the time is right, ok? π«Ά
This little gem lives in ./kernel/power π dated October 2026 π β mwah, bye! πβ¨
π¦ 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