---
name: "abort_exclusive_wait"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/abort_exclusive_wait"
---

# abort\_exclusive\_wait(9)

abort exclusive waiting in a queue

## NAME

abort\_exclusive\_wait - abort exclusive waiting in a queue

## SYNOPSIS

**void abort\_exclusive\_wait(wait\_queue\_head\_t \*** *q***, wait\_queue\_t \*** *wait***, unsigned int** *mode***, void \*** *key***);**

## ARGUMENTS

*q*

waitqueue waited on

*wait*

wait descriptor

*mode*

runstate of the waiter to be woken

*key*

key to identify a wait bit queue or **NULL**

## DESCRIPTION

Sets current thread back to running state and removes the wait descriptor from the given waitqueue if still queued.

Wakes up the next waiter if the caller is concurrently woken up through the queue.

This prevents waiter starvation where an exclusive waiter aborts and is woken up concurrently and no one wakes up the next waiter.

## COPYRIGHT
