mlx5dv_vfio_process_events - process vfio driver events
#include <infiniband/mlx5dv.h> int mlx5dv_vfio_process_events(struct ibv_context *ctx);
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.
- device context that was opened for VFIO by calling mlx5dv_get_vfio_device_list().
Returns 0 upon success or errno value in case a failure has occurred.
Application can use this API also to periodically check the device health state even if no events exist.
Yishai Hadas <firstname.lastname@example.org>