1mlx5dv_vfio_process_events(3)                    mlx5dv_vfio_process_events(3)
2
3
4

NAME

6       mlx5dv_vfio_process_events - process vfio driver events
7

SYNOPSIS

9              #include <infiniband/mlx5dv.h>
10
11              int mlx5dv_vfio_process_events(struct ibv_context *ctx);
12

DESCRIPTION

14       This API should run from application thread and maintain device events.
15       The application  is  responsible  to  get  the  events  FD  by  calling
16       mlx5dv_vfio_get_events_fd() and once the FD is pollable call the API to
17       let driver process its internal events.
18

ARGUMENTS

20       ctx    device  context  that   was   opened   for   VFIO   by   calling
21              mlx5dv_get_vfio_device_list().
22

RETURN VALUE

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

NOTES

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

SEE ALSO

31       ibv_open_device(3)     ibv_free_device_list(3)      mlx5dv_get_vfio_de‐
32       vice_list(3) mlx5dv_vfio_get_events_fd(3)
33

AUTHOR

35       Yishai Hadas <yishaih@nvidia.com>
36
37
38
39                                                 mlx5dv_vfio_process_events(3)
Impressum