---
name: "kthread_freezable_should_stop"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/kthread_freezable_should_stop"
---

# kthread\_freezable\_should\_stop(9)

should this freezable kthread return now?

## 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

**kthread\_should\_stop** for freezable kthreads, which will enter refrigerator if necessary. This function is safe from **kthread\_stop** / freezer deadlock and freezable kthreads should use this function instead of calling **try\_to\_freeze** directly.

## COPYRIGHT
