• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/

Lines Matching refs:eventfd

2  *  fs/eventfd.c
21 #include <linux/eventfd.h>
27 * Every time that a write(2) is performed on an eventfd, the
39 * eventfd_signal - Adds @n to the eventfd counter.
40 * @ctx: [in] Pointer to the eventfd context.
41 * @n: [in] Value of the counter to be added to the eventfd internal counter.
85 * eventfd_ctx_get - Acquires a reference to the internal eventfd context.
86 * @ctx: [in] Pointer to the eventfd context.
88 * Returns: In case of success, returns a pointer to the eventfd context.
98 * eventfd_ctx_put - Releases a reference to the internal eventfd context.
99 * @ctx: [in] Pointer to eventfd context.
101 * The eventfd context reference must have been previously acquired either
147 * @ctx: [in] Pointer to eventfd context.
155 * This is used to atomically remove a wait queue entry from the eventfd wait
175 * eventfd_ctx_read - Reads the eventfd counter or wait if it is zero.
176 * @ctx: [in] Pointer to eventfd context.
185 * If @no_wait is zero, the function might sleep until the eventfd internal
299 * eventfd_fget - Acquire a reference of an eventfd file descriptor.
302 * Returns a pointer to the eventfd file structure in case of success, or the
306 * -EINVAL : The @fd file descriptor is not an eventfd file.
325 * eventfd_ctx_fdget - Acquires a reference to the internal eventfd context.
328 * Returns a pointer to the internal eventfd context, otherwise the error
349 * eventfd_ctx_fileget - Acquires a reference to the internal eventfd context.
352 * Returns a pointer to the internal eventfd context, otherwise the error
355 * -EINVAL : The @fd file descriptor is not an eventfd file.
367 * eventfd_file_create - Creates an eventfd file pointer.
368 * @count: Initial eventfd counter value.
369 * @flags: Flags for the eventfd file.
371 * This function creates an eventfd file pointer, w/out installing it into
372 * the fd table. This is useful when the eventfd file is used during the
373 * initialization of data structures that require extra setup after the eventfd
374 * creation. So the eventfd creation is split into the file pointer creation
378 * Returns an eventfd file pointer, or a proper error pointer.
401 file = anon_inode_getfile("[eventfd]", &eventfd_fops, ctx,
434 SYSCALL_DEFINE1(eventfd, unsigned int, count)