DOKK / manpages / debian 11 / libibverbs-dev / mlx5dv_devx_create_event_channel.3.en
mlx5dv_devx_create_event_channel, mlx5dv_devx_destroy_event_channel(3) mlx5dv_devx_create_event_channel, mlx5dv_devx_destroy_event_channel(3)

mlx5dv_devx_create_event_channel - Create an event channel to be used for DEVX asynchronous events.

mlx5dv_devx_destroy_event_channel - Destroy a DEVX event channel.

#include <infiniband/mlx5dv.h>
struct mlx5dv_devx_event_channel {

int fd; }; struct mlx5dv_devx_event_channel * mlx5dv_devx_create_event_channel(struct ibv_context *context,
enum mlx5dv_devx_create_event_channel_flags flags) void mlx5dv_devx_destroy_event_channel(struct mlx5dv_devx_event_channel *event_channel)

Create or destroy a channel to be used for DEVX asynchronous events.

The create verb exposes an mlx5dv_devx_event_channel object that can be used to read asynchronous DEVX events. This lets an application to subscribe to get device events and once an event occurred read it from this object.

RDMA device context to create the channel on.
    
MLX5DV_DEVX_CREATE_EVENT_CHANNEL_FLAGS_OMIT_EV_DATA: omit the event data on this channel.

Upon success mlx5dv_devx_create_event_channel will return a new struct mlx5dv_devx_event_channel object, on error NULL will be returned and errno will be set.

mlx5dv_open_device(3), mlx5dv_devx_obj_create(3)

#AUTHOR

Yishai Hadas <yishaih@mellanox.com>