---
name: "mlx5dv_vfio_process_events"
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_process_events"
---

# mlx5dv\_vfio\_process\_events(3)

process vfio driver events

## NAME

mlx5dv\_vfio\_process\_events - process vfio driver events

## SYNOPSIS

-

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

## DESCRIPTION

This API should run from application thread and maintain device events. The application is responsible to get the events FD by calling *mlx5dv\_vfio\_get\_events\_fd()* and once the FD is pollable call the API to let driver process its internal events.

## ARGUMENTS

- *ctx*

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

## RETURN VALUE

Returns 0 upon success or errno value in case a failure has occurred.

## NOTES

Application can use this API also to periodically check the device health state even if no events exist.

## 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)* *[mlx5dv\_vfio\_get\_events\_fd(3)](/mlx5dv_vfio_get_events_fd/3.md)*

## AUTHOR

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