'\" t .\" Title: fixup_owner .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Futex API reference .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "FIXUP_OWNER" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Futex API reference" .\" ----------------------------------------------------------------- .\" * 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" fixup_owner \- Post lock pi_state and corner case management .SH "SYNOPSIS" .HP \w'int\ fixup_owner('u .BI "int fixup_owner(u32\ __user\ *\ " "uaddr" ", struct\ futex_q\ *\ " "q" ", int\ " "locked" ");" .SH "ARGUMENTS" .PP \fIuaddr\fR .RS 4 user address of the futex .RE .PP \fIq\fR .RS 4 futex_q (contains pi_state and access to the rt_mutex) .RE .PP \fIlocked\fR .RS 4 if the attempt to take the rt_mutex succeeded (1) or not (0) .RE .SH "DESCRIPTION" .PP After attempting to lock an rt_mutex, this function is called to cleanup the pi_state owner as well as handle race conditions that may allow us to acquire the lock\&. Must be called with the hb lock held\&. .SH "RETURN" .PP 1 \- success, lock taken; 0 \- success, lock not taken; <0 \- on error (\-EFAULT) .SH "AUTHOR" .PP \fBRusty Russell\fR <\&rusty@rustcorp.com.au\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br