.\" Automatically generated by Pandoc 3.1.11.1
.\"
.TH "mlx5dv_vfio_process_events" "3" "" "" ""
.SH NAME
mlx5dv_vfio_process_events \- process vfio driver events
.SH SYNOPSIS
.IP
.EX
#include <infiniband/mlx5dv.h>

int mlx5dv_vfio_process_events(struct ibv_context *ctx);
.EE
.SH DESCRIPTION
This API should run from application thread and maintain device events.
The application is responsible to get the events FD by calling
\f[I]mlx5dv_vfio_get_events_fd()\f[R] and once the FD is pollable call
the API to let driver process its internal events.
.SH ARGUMENTS
.TP
\f[I]ctx\f[R]
device context that was opened for VFIO by calling
mlx5dv_get_vfio_device_list().
.SH RETURN VALUE
Returns 0 upon success or errno value in case a failure has occurred.
.SH NOTES
Application can use this API also to periodically check the device
health state even if no events exist.
.SH SEE ALSO
\f[I]ibv_open_device(3)\f[R] \f[I]ibv_free_device_list(3)\f[R]
\f[I]mlx5dv_get_vfio_device_list(3)\f[R]
\f[I]mlx5dv_vfio_get_events_fd(3)\f[R]
.SH AUTHOR
Yishai Hadas \c
.MT yishaih@nvidia.com
.ME \c
