---
name: "ionic_dv_ctx_get_udma_count"
section: "3"
platform: "linux"
package: "rdma-core"
version: "65.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ionic_dv_ctx_get_udma_count"
---

# ionic\_dv\_ctx\_get\_udma\_count(3)

Get number of UDMA pipelines

## NAME

ionic\_dv\_ctx\_get\_udma\_count - Get number of UDMA pipelines

## SYNOPSIS

-

  ```
  #include <infiniband/ionic_dv.h>
  uint8_t ionic_dv_ctx_get_udma_count(struct ibv_context *ibctx);
  ```

## DESCRIPTION

**ionic\_dv\_ctx\_get\_udma\_count()** returns the number of UDMA pipelines available on the ionic device associated with *ibctx*.

UDMA pipelines are independent data paths through the device. Queues can be assigned to specific pipelines using [**ionic\_dv\_pd\_set\_udma\_mask**(3)](/ionic_dv_pd_set_udma_mask/3.md) on a protection domain before creating the queues.

## ARGUMENTS

- *ibctx*

  The device context to query. Must be an ionic device context.

## RETURN VALUE

Returns the number of UDMA pipelines available on the device. Returns 0 if *ibctx* is not an ionic device context.

## SEE ALSO

[**ionicdv**(7)](/ionicdv/7.md), [**ionic\_dv\_ctx\_get\_udma\_mask**(3)](/ionic_dv_ctx_get_udma_mask/3.md), [**ionic\_dv\_pd\_get\_udma\_mask**(3)](/ionic_dv_pd_get_udma_mask/3.md), [**ionic\_dv\_pd\_set\_udma\_mask**(3)](/ionic_dv_pd_set_udma_mask/3.md)

## AUTHORS

Advanced Micro Devices, Inc.
