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

# eventfd\_ctx\_remove\_wait\_queue(9)

Read the current counter and removes wait queue.

## NAME

eventfd\_ctx\_remove\_wait\_queue - Read the current counter and removes wait queue.

## SYNOPSIS

**int eventfd\_ctx\_remove\_wait\_queue(struct eventfd\_ctx \*** *ctx***, wait\_queue\_t \*** *wait***, \_\_u64 \*** *cnt***);**

## ARGUMENTS

*ctx*

\[in\] Pointer to eventfd context.

*wait*

\[in\] Wait queue to be removed.

*cnt*

\[out\] Pointer to the 64-bit counter value.

## DESCRIPTION

Returns **0** if successful, or the following error codes:

\-EAGAIN : The operation would have blocked.

This is used to atomically remove a wait queue entry from the eventfd wait queue head, and read/reset the counter value.

## COPYRIGHT
