'\" t .\" Title: fence_wait_timeout .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "FENCE_WAIT_TIMEOUT" "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_wait_timeout \- sleep until the fence gets signaled or until timeout elapses .SH "SYNOPSIS" .HP \w'signed\ long\ fence_wait_timeout('u .BI "signed long fence_wait_timeout(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\&. Other error values may be returned on custom implementations\&. .PP Performs a synchronous wait on this fence\&. It is assumed the caller directly or indirectly (buf\-mgr between reservation and committing) holds a reference to the fence, otherwise the fence might be freed before return, resulting in undefined behavior\&. .SH "COPYRIGHT" .br