1mlx5dv_demvlxx_5cdrve_adteev_xe_vcerneta_tceh_aenvneenlt,_cmhlaxn5ndevl_,demvlxx_5ddevs_tdreovyx__edveesnttr_ocyh_aenvneenlt(_3c)hannel(3)
2
3
4

NAME

6       mlx5dv_devx_create_event_channel  -  Create an event channel to be used
7       for DEVX asynchronous events.
8
9       mlx5dv_devx_destroy_event_channel - Destroy a DEVX event channel.
10

SYNOPSIS

12              #include <infiniband/mlx5dv.h>
13
14              struct mlx5dv_devx_event_channel {
15                  int fd;
16              };
17
18              struct mlx5dv_devx_event_channel *
19              mlx5dv_devx_create_event_channel(struct ibv_context *context,
20                                               enum mlx5dv_devx_create_event_channel_flags flags)
21
22              void mlx5dv_devx_destroy_event_channel(struct mlx5dv_devx_event_channel *event_channel)
23

DESCRIPTION

25       Create or destroy a channel to be used for DEVX asynchronous events.
26
27       The create verb exposes an mlx5dv_devx_event_channel object that can be
28       used  to  read  asynchronous  DEVX events.  This lets an application to
29       subscribe to get device events and once an event occurred read it  from
30       this object.
31

ARGUMENTS

33       context
34
35              RDMA device context to create the channel on.
36
37       flags  MLX5DV_DEVX_CREATE_EVENT_CHANNEL_FLAGS_OMIT_EV_DATA:   omit  the
38              event data on this channel.
39

RETURN VALUE

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

SEE ALSO

46       mlx5dv_open_device(3), mlx5dv_devx_obj_create(3)
47
48       #AUTHOR
49
50       Yishai Hadas <yishaih@mellanox.com>
51
52
53
54        mlx5dv_devx_create_event_channel, mlx5dv_devx_destroy_event_channel(3)
Impressum