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

# ibv\_inc\_rkey(3)

creates a new rkey from the given one

## NAME

ibv\_inc\_rkey - creates a new rkey from the given one

## SYNOPSIS

-

  ```
  #include <infiniband/verbs.h>
  uint32_t ibv_inc_rkey(uint32_t rkey);
  ```

## DESCRIPTION

**ibv\_inc\_rkey()** Increases the 8 LSB of *rkey* and returns the new value.

## RETURN VALUE

**ibv\_inc\_rkey()** returns the new rkey.

## NOTES

The verb generates a new rkey that is different from the previous one on its tag part but has the same index (bits 0xffffff00). A use case for this verb can be to create a new rkey from a Memory window’s rkey when binding it to a Memory region.

## AUTHORS

Majd Dibbiny ⟨majd@mellanox.com⟩\\c , Yishai Hadas ⟨yishaih@mellanox.com⟩\\c
