mlx5dv_devx_subscribe_devx_event(3)

mlx5dv_devx_subscribe_devx_event3

Subscribe over an event channel for device events. mlx5dv_devx_subscribe_devx_event_fd - subscribe over an event channel for device events to signal eventfd.

Usage

#include <infiniband/mlx5dv.h>
int mlx5dv_devx_subscribe_devx_event(struct mlx5dv_devx_event_channel *dv_event_channel,
                     struct mlx5dv_devx_obj *obj,
                     uint16_t events_sz,
                     uint16_t events_num[],
                     uint64_t cookie)
int mlx5dv_devx_subscribe_devx_event_fd(struct mlx5dv_devx_event_channel *dv_event_channel,
                    int fd,
                    struct mlx5dv_devx_obj *obj,
                    uint16_t event_num)

Overview

Subscribe over a DEVX event channel for device events.

Arguments

dv_event_channel

Event channel to subscribe over.

fd

A file descriptor that previously was opened by the eventfd() system call.

obj

DEVX object that events_num relates to, can be NULL for unaffiliated events.

events_sz

Size of the events_num buffer that holds the events to subscribe for.

events_num

Holds the required event numbers to subscribe for, numbers are according to the device specification.

cookie

The value to be returned back when reading the event, can be used as an ID for application use.

Notes

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

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch

From rdma-core 65.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.