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

# manadv\_alloc\_pd(3)

Create a MANA specific PD for the RDMA device context.

## NAME

manadv\_alloc\_pd - Create a MANA specific PD for the RDMA device context.

## SYNOPSIS”

-

  ```
  #include <infiniband/manadv.h>
  struct ibv_pd *manadv_alloc_pd(struct ibv_context *context, uint32_t flags);
  ```

## DESCRIPTION

**manadv\_alloc\_pd()** allocates a PD for the RDMA device context with additional creation flags.

## ARGUMENTS

- *context*

  RDMA device context to work on.

- *flags*

  A bitwise OR of the various values described below.

  MANADV\_PD\_FLAGS\_SHORT\_PDN: allocates a PD with 16 bit PDN.

## RETURN VALUE

returns a pointer to the allocated PD, or NULL if the request fails.

## AUTHORS

Konstantin Taranov ⟨kotaranov@microsoft.com⟩\\c
