logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mlx5dv_vfio_process_events - process vfio driver events

Arguments

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

Author

Yishai Hadas yishaih@nvidia.commlx5dv_vfio_process_events(3)

Description

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.

Name

mlx5dv_vfio_process_events - process vfio driver events

Notes

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

Return Value

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

See Also

ibv_open_device(3)ibv_free_device_list(3)mlx5dv_get_vfio_device_list(3)mlx5dv_vfio_get_events_fd(3)

Synopsis

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

See Also