---
name: "mlx5dv_vfio_get_events_fd"
section: "3"
platform: "linux"
package: "rdma-core"
version: "65.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/mlx5dv_vfio_get_events_fd"
---

# mlx5dv\_vfio\_get\_events\_fd(3)

Get the file descriptor to manage driver events.

## NAME

mlx5dv\_vfio\_get\_events\_fd - Get the file descriptor to manage driver events.

## SYNOPSIS

-

  ```
  #include <infiniband/mlx5dv.h>
  int mlx5dv_vfio_get_events_fd(struct ibv_context *ctx);
  ```

## DESCRIPTION

Returns the file descriptor to be used for managing driver events.

## ARGUMENTS

- *ctx*

  device context that was opened for VFIO by calling mlx5dv\_get\_vfio\_device\_list().

## RETURN VALUE

Returns the internal matching file descriptor.

## NOTES

Client code should poll the returned file descriptor and once there is some data to be managed immediately call *mlx5dv\_vfio\_process\_events()*.

## SEE ALSO

*[ibv\_open\_device(3)](/ibv_open_device/3.md)* *[ibv\_free\_device\_list(3)](/ibv_free_device_list/3.md)* *[mlx5dv\_get\_vfio\_device\_list(3)](/mlx5dv_get_vfio_device_list/3.md)*

## AUTHOR

Yishai Hadas ⟨yishaih@nvidia.com⟩\\c
