1mlx5dv_mdlexv5xd_vs_udbesvcxr_isbueb_sdcervixb_ee_vdeenvtx,_emvlexn5td,v_mdlexv5xd_vs_udbesvcxr_isbueb_sdcervixb_ee_vdeenvtx__fedv(e3n)t_fd(3)
2
3
4

NAME

6       mlx5dv_devx_subscribe_devx_event  - Subscribe over an event channel for
7       device events.
8
9       mlx5dv_devx_subscribe_devx_event_fd - Subscribe over an  event  channel
10       for device events to signal eventfd.
11

SYNOPSIS

13              #include <infiniband/mlx5dv.h>
14
15              int mlx5dv_devx_subscribe_devx_event(struct mlx5dv_devx_event_channel *dv_event_channel,
16                                   struct mlx5dv_devx_obj *obj,
17                                   uint16_t events_sz,
18                                   uint16_t events_num[],
19                                   uint64_t cookie)
20
21              int mlx5dv_devx_subscribe_devx_event_fd(struct mlx5dv_devx_event_channel *dv_event_channel,
22                                  int fd,
23                                  struct mlx5dv_devx_obj *obj,
24                                  uint16_t event_num)
25

DESCRIPTION

27       Subscribe over a DEVX event channel for device events.
28

ARGUMENTS

30       dv_event_channel
31              Event channel to subscribe over.
32
33       fd     A  file  descriptor  that previously was opened by the eventfd()
34              system call.
35
36       obj    DEVX object that events_num relates to, can be NULL for unaffil‐
37              iated events.
38
39       events_sz
40              Size of the events_num buffer that holds the events to subscribe
41              for.
42
43       events_num
44              Holds the required event numbers to subscribe for,  numbers  are
45              according to the device specification.
46
47       cookie The  value  to  be  returned back when reading the event, can be
48              used as an ID for application use.
49

NOTES

51       When mlx5dv_devx_subscribe_devx_event_fd will be used the  fd  will  be
52       signaled once an event has occurred.
53

SEE ALSO

55       mlx5dv_open_device(3),  mlx5dv_devx_create_event_channel(3), mlx5dv_de‐
56       vx_get_event(3)
57
58       #AUTHOR
59
60       Yishai Hadas <yishaih@mellanox.com>
61
62
63
64      mlx5dv_devx_subscribe_devx_event, mlx5dv_devx_subscribe_devx_event_fd(3)
Impressum