---
name: "rpma_utils_ibv_context_is_odp_capable"
section: "3"
platform: "linux"
package: "librpma-dev"
version: "1.3.0-2+b3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rpma_utils_ibv_context_is_odp_capable"
---

# rpma\_utils\_ibv\_context\_is\_odp\_capable(3)

is On-Demand Paging supported

## NAME

**rpma\_utils\_ibv\_context\_is\_odp\_capable** - is On-Demand Paging supported

## SYNOPSIS

```
      #include <librpma.h>
      struct ibv_context;
      int rpma_utils_ibv_context_is_odp_capable(struct ibv_context *ibv_ctx,
              int *is_odp_capable);
```

## DESCRIPTION

**rpma\_utils\_ibv\_context\_is\_odp\_capable**() queries the RDMA device context's capabilities and check if it supports On-Demand Paging.

## RETURN VALUE

The **rpma\_utils\_ibv\_context\_is\_odp\_capable**() function returns 0 on success or a negative error code on failure. The \*is\_odp\_capable value on failure is undefined.

## ERRORS

**rpma\_utils\_ibv\_context\_is\_odp\_capable**() can fail with the following errors:

- •

  RPMA\_E\_INVAL - ibv\_ctx or is\_odp\_capable is NULL

- •

  RPMA\_E\_PROVIDER - **ibv\_query\_device\_ex**() failed, the exact cause of the error can be read from the log

## SEE ALSO

[**rpma\_utils\_get\_ibv\_context**(3)](/rpma_utils_get_ibv_context/3.md), [**librpma**(7)](/librpma/7.md) and https://pmem.io/rpma/
