'\" t .\" Title: complete .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.76.1 .\" Date: March 2016 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 3.2.78 .\" Language: English .\" .TH "COMPLETE" "9" "March 2016" "Kernel Hackers Manual 3\&.2\&." "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" complete \- signals a single thread waiting on this completion .SH "SYNOPSIS" .HP \w'void\ complete('u .BI "void complete(struct\ completion\ *\ " "x" ");" .SH "ARGUMENTS" .PP \fIx\fR .RS 4 holds the state of this particular completion .RE .SH "DESCRIPTION" .PP This will wake up a single thread waiting on this completion\&. Threads will be awakened in the same order in which they were queued\&. .PP See also \fBcomplete_all\fR, \fBwait_for_completion\fR and related routines\&. .PP It may be assumed that this function implies a write memory barrier before changing the task state if and only if any tasks are woken up\&. .SH "COPYRIGHT" .br