eventfd_ctx_remove_wait_queue(9)

eventfd_ctx_remove_wait_queue9

Read the current counter and removes wait queue.

Usage

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.

Overview

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.

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.