1EVENTFD_SIGNAL(9) Events based on file descripto EVENTFD_SIGNAL(9)
2
3
4
6 eventfd_signal - Adds n to the eventfd counter.
7
9 __u64 eventfd_signal(struct eventfd_ctx * ctx, __u64 n);
10
12 ctx
13 [in] Pointer to the eventfd context.
14
15 n
16 [in] Value of the counter to be added to the eventfd internal
17 counter. The value cannot be negative.
18
20 This function is supposed to be called by the kernel in paths that do
21 not allow sleeping. In this function we allow the counter to reach the
22 ULLONG_MAX value, and we signal this as overflow condition by
23 returining a POLLERR to poll(2).
24
25 Returns the amount by which the counter was incrememnted. This will be
26 less than n if the counter has overflowed.
27
29Kernel Hackers Manual 3.10 June 2019 EVENTFD_SIGNAL(9)