ibv_query_comp_cntr_caps(3)

ibv_query_comp_cntr_caps3

Query completion counter capabilities

Usage

#include <infiniband/verbs.h>
int ibv_query_comp_cntr_caps(struct ibv_context *context,
                             struct ibv_comp_cntr_caps *caps);

Overview

ibv_query_comp_cntr_caps() queries the completion counter capabilities of the RDMA device associated with context.

Arguments

ibv_comp_cntr_caps

struct ibv_comp_cntr_caps {
    uint64_t max_value;
    uint32_t max_counters;
    uint32_t supported_qp_attach_ops;
};
max_value

The maximum value a completion counter can hold. A subsequent increment that would exceed this value wraps the counter to zero.

max_counters

The maximum number of completion counters that can be created on this device.

supported_qp_attach_ops

A bitmask of ibv_qp_attach_comp_cntr_op values indicating which attach operations are supported by the device. See ibv_qp_attach_comp_cntr(3) for the list of operations.

Return value

ibv_query_comp_cntr_caps() returns 0 on success, or the value of errno on failure (which indicates the failure reason).

Errors

ENOTSUP

Completion counters are not supported on this device.

Authors

Michael Margolin ⟨[email protected]⟩\c

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