---
name: "finish_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/finish_wait"
---

# finish\_wait(9)

clean up after waiting in a queue

## NAME

finish\_wait - clean up after waiting in a queue

## SYNOPSIS

**void finish\_wait(wait\_queue\_head\_t \*** *q***, wait\_queue\_t \*** *wait***);**

## ARGUMENTS

*q*

waitqueue waited on

*wait*

wait descriptor

## DESCRIPTION

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

## COPYRIGHT
