.\" Automatically generated by Pandoc 3.6.1 .\" .TH "mlx5dv_vfio_get_events_fd" "3" "" "" .SH NAME mlx5dv_vfio_get_events_fd \- Get the file descriptor to manage driver events. .SH SYNOPSIS .IP .EX #include \f[B]\f[R] int mlx5dv_vfio_get_events_fd(\f[B]struct\f[R] ibv_context *ctx); .EE .SH DESCRIPTION Returns the file descriptor to be used for managing driver 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 the internal matching file descriptor. .SH NOTES Client code should poll the returned file descriptor and once there is some data to be managed immediately call \f[I]mlx5dv_vfio_process_events()\f[R]. .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] .SH AUTHOR Yishai Hadas \c .MT yishaih@nvidia.com .ME \c