eventfd_ctx_fileget
Prev | Chapter 3. Events based on file descriptors | Next

## Name

eventfd_ctx_fileget — Acquires a reference to the internal eventfd context.

## Synopsis

`struct eventfd_ctx * eventfd_ctx_fileget (` | struct file * file`)`;

## Arguments

`file`

  [in] Eventfd file pointer.

## Description

Returns a pointer to the internal eventfd context, otherwise the error

## pointer

-EINVAL : The `fd` file descriptor is not an eventfd file.

Prev | Up | Next
eventfd_ctx_fdget | Home | Chapter 4. The Filesystem for Exporting Kernel Objects