'\" t .\" Title: fence_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_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_wait \- sleep until the fence gets signaled .SH "SYNOPSIS" .HP \w'signed\ long\ fence_wait('u .BI "signed long fence_wait(struct\ fence\ *\ " "fence" ", bool\ " "intr" ");" .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 .SH "DESCRIPTION" .PP This function will return \-ERESTARTSYS if interrupted by a signal, or 0 if the fence was signaled\&. 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 holds a reference to the fence, otherwise the fence might be freed before return, resulting in undefined behavior\&. .SH "COPYRIGHT" .br