---
name: "__wake_up_sync"
section: "9"
platform: "linux"
package: "linux-manual-2.6.26"
version: "2.6.26-29"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/__wake_up_sync"
---

# \_\_wake\_up\_sync(9)

wake up threads blocked on a waitqueue.

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

*q*

the waitqueue

*mode*

which threads

*nr\_exclusive*

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

## DESCRIPTION

The sync wakeup differs that the waker knows that it will schedule away soon, so while the target thread will be woken up, it will not be migrated to another CPU - ie. the two threads are ´synchronized´ with each other. This can prevent needless bouncing between CPUs.

On UP it can prevent extra preemption.

## COPYRIGHT
