1EVENTFD_CTX_READ(9)     Events based on file descripto     EVENTFD_CTX_READ(9)
2
3
4

NAME

6       eventfd_ctx_read - Reads the eventfd counter or wait if it is zero.
7

SYNOPSIS

9       ssize_t eventfd_ctx_read(struct eventfd_ctx * ctx, int no_wait,
10                                __u64 * cnt);
11

ARGUMENTS

13       ctx
14           [in] Pointer to eventfd context.
15
16       no_wait
17           [in] Different from zero if the operation should not block.
18
19       cnt
20           [out] Pointer to the 64-bit counter value.
21

DESCRIPTION

23       Returns 0 if successful, or the following error codes:
24
25       -EAGAIN : The operation would have blocked but no_wait was non-zero.
26       -ERESTARTSYS : A signal interrupted the wait operation.
27
28       If no_wait is zero, the function might sleep until the eventfd internal
29       counter becomes greater than zero.
30
32Kernel Hackers Manual 3.10         June 2019               EVENTFD_CTX_READ(9)
Impressum