'\" t .\" Title: kthread_freezable_should_stop .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "KTHREAD_FREEZABLE_SH" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Driver Basics" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" kthread_freezable_should_stop \- should this freezable kthread return now? .SH "SYNOPSIS" .HP \w'bool\ kthread_freezable_should_stop('u .BI "bool kthread_freezable_should_stop(bool\ *\ " "was_frozen" ");" .SH "ARGUMENTS" .PP \fIwas_frozen\fR .RS 4 optional out parameter, indicates whether \fBcurrent\fR was frozen .RE .SH "DESCRIPTION" .PP \fBkthread_should_stop\fR for freezable kthreads, which will enter refrigerator if necessary\&. This function is safe from \fBkthread_stop\fR / freezer deadlock and freezable kthreads should use this function instead of calling \fBtry_to_freeze\fR directly\&. .SH "COPYRIGHT" .br