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_get_events_fd - Get the file descriptor to manage 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_get_events_fd(3)

Description

Returns the file descriptor to be used for managing driver events.

Name

mlx5dv_vfio_get_events_fd - Get the file descriptor to manage driver events.

Notes

Client code should poll the returned file descriptor and once there is some data to be managed immediately call mlx5dv_vfio_process_events().

Return Value

Returns the internal matching file descriptor.

See Also

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

Synopsis

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

See Also