'\" t .\" Title: fence_default_wait .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "FENCE_DEFAULT_WAIT" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Device drivers infrastructure" .\" ----------------------------------------------------------------- .\" * 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" fence_default_wait \- default sleep until the fence gets signaled or until timeout elapses .SH "SYNOPSIS" .HP \w'signed\ long\ fence_default_wait('u .BI "signed long fence_default_wait(struct\ fence\ *\ " "fence" ", bool\ " "intr" ", signed\ long\ " "timeout" ");" .SH "ARGUMENTS" .PP \fIfence\fR .RS 4 [in] the fence to wait on .RE .PP \fIintr\fR .RS 4 [in] if true, do an interruptible wait .RE .PP \fItimeout\fR .RS 4 [in] timeout value in jiffies, or MAX_SCHEDULE_TIMEOUT .RE .SH "DESCRIPTION" .PP Returns \-ERESTARTSYS if interrupted, 0 if the wait timed out, or the remaining timeout in jiffies on success\&. .SH "COPYRIGHT" .br