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

# \_\_wake\_up(9)

wake up threads blocked on a waitqueue.

## NAME

\_\_wake\_up - wake up threads blocked on a waitqueue.

## SYNOPSIS

**void \_\_wake\_up(wait\_queue\_head\_t \*** *q***, unsigned int** *mode***, int** *nr\_exclusive***, void \*** *key***);**

## ARGUMENTS

*q*

the waitqueue

*mode*

which threads

*nr\_exclusive*

how many wake-one or wake-many threads to wake up

*key*

is directly passed to the wakeup function

## DESCRIPTION

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.

## COPYRIGHT
