mlx5dv_devx_create_event_channel - Man Page
Name
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.
Synopsis
#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)
Description
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.
Arguments
- context
RDMA device context to create the channel on.
- flags
MLX5DV_DEVX_CREATE_EVENT_CHANNEL_FLAGS_OMIT_EV_DATA: omit the event data on this channel.
Return Value
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.
See Also
mlx5dv_open_device(3), mlx5dv_devx_obj_create(3)
#AUTHOR
Yishai Hadas yishaih@mellanox.com\c
Referenced By
mlx5dv_devx_subscribe_devx_event(3).
The man page mlx5dv_devx_destroy_event_channel(3) is an alias of mlx5dv_devx_create_event_channel(3).