---
name: "fixup_owner"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/fixup_owner"
---

# fixup\_owner(9)

Post lock pi\_state and corner case management

## NAME

fixup\_owner - Post lock pi\_state and corner case management

## SYNOPSIS

**int fixup\_owner(u32 \_\_user \*** *uaddr***, struct futex\_q \*** *q***, int** *locked***);**

## ARGUMENTS

*uaddr*

user address of the futex

*q*

futex\_q (contains pi\_state and access to the rt\_mutex)

*locked*

if the attempt to take the rt\_mutex succeeded (1) or not (0)

## DESCRIPTION

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.

## RETURN

1 - success, lock taken; 0 - success, lock not taken; \<0 - on error (-EFAULT)

## AUTHOR

**Rusty Russell** \<rusty@rustcorp.com.au\>

Author.

## COPYRIGHT
