kthread_freezable_should_stop(9)

kthread_freezable_should_stop9

Should this freezable kthread return now?

Usage

bool kthread_freezable_should_stop(bool * was_frozen);

Arguments

was_frozen

optional out parameter, indicates whether current was frozen

Overview

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.

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.