kthread_fre..._should_stop(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kthread_fre..._should_stop(9)

okay bestie, this one is straight from the Kernel API Manual, and it’s all about checking in on a freezable kthread. 🧊✨

🌸 NAME 🌸

kthread_freezable_should_stop β€” should this freezable kthread return now? πŸ‘€

✨ SYNOPSIS ✨

bool kthread_freezable_should_stop (bool *was_frozen );

🫢 ARGUMENTS 🫢

  • was_frozen β€” optional out parameter, indicates whether current was frozen. πŸ§ŠπŸ’–

🧊 DESCRIPTION 🧊

okay so this is literally the kthread_should_stop for freezable kthreads, and it will enter the refrigerator if necessary. no cap. πŸ§šβ€β™€οΈ

This function is safe from kthread_stop / freezer deadlock, and freezable kthreads should use this function instead of calling try_to_freeze directly. periodt. πŸ’…πŸ”₯

πŸ”— SEE ALSO πŸ”—

The kernel file is literally ./kernel/kthread.c, and the whole linked squad is:


source/version: ./kernel 🌈 date: October 2026 πŸŽ€ β€” byeeeee bestie, stay cozy and deadlock-free πŸ’–πŸ¦‹

πŸ“¦ where this page comes from