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

# queue\_me(9)

Enqueue the futex\_q on the futex\_hash\_bucket

## NAME

queue\_me - Enqueue the futex\_q on the futex\_hash\_bucket

## SYNOPSIS

**void queue\_me(struct futex\_q \*** *q***, struct futex\_hash\_bucket \*** *hb***);**

## ARGUMENTS

*q*

The futex\_q to enqueue

*hb*

The destination hash bucket

## DESCRIPTION

The hb-\>lock must be held by the caller, and is released here. A call to **queue\_me** is typically paired with exactly one call to **unqueue\_me**. The exceptions involve the PI related operations, which may use **unqueue\_me\_pi** or nothing if the unqueue is done as part of the wake process and the unqueue state is implicit in the state of woken task (see **futex\_wait\_requeue\_pi** for an example).

## AUTHOR

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

Author.

## COPYRIGHT
