.\" Automatically generated by Pandoc 1.16.0.2
.\"
.TH "mlx5dv_vfio_get_events_fd" "3" "" "" ""
.hy
.SH NAME
.PP
mlx5dv_vfio_get_events_fd \- Get the file descriptor to manage driver
events.
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <infiniband/mlx5dv.h>

int\ mlx5dv_vfio_get_events_fd(struct\ ibv_context\ *ctx);
\f[]
.fi
.SH DESCRIPTION
.PP
Returns the file descriptor to be used for managing driver events.
.SH ARGUMENTS
.TP
.B \f[I]ctx\f[]
device context that was opened for VFIO by calling
mlx5dv_get_vfio_device_list().
.RS
.RE
.SH RETURN VALUE
.PP
Returns the internal matching file descriptor.
.SH NOTES
.PP
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[].
.SH SEE ALSO
.PP
\f[I]ibv_open_device(3)\f[] \f[I]ibv_free_device_list(3)\f[]
\f[I]mlx5dv_get_vfio_device_list(3)\f[]
.SH AUTHOR
.PP
Yishai Hadas <yishaih@nvidia.com>
