ibv_inc_rkey(3) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | NOTES | AUTHORS | COLOPHON

IBV_INC_RKEY(3)       Libibverbs Programmer’s Manual      IBV_INC_RKEY(3)

NAME         top

       ibv_inc_rkey - creates a new rkey from the given one

SYNOPSIS         top

              #include <infiniband/verbs.h>

              uint32_t ibv_inc_rkey(uint32_t rkey);

DESCRIPTION         top

       ibv_inc_rkey() Increases the 8 LSB of rkey and returns the new
       value.

RETURN VALUE         top

       ibv_inc_rkey() returns the new rkey.

NOTES         top

       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         top

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

COLOPHON         top

       This page is part of the rdma-core (RDMA Core Userspace Libraries
       and Daemons) project.  Information about the project can be found
       at ⟨https://github.com/linux-rdma/rdma-core⟩.  If you have a bug
       report for this manual page, send it to
       linux-rdma@vger.kernel.org.  This page was obtained from the
       project's upstream Git repository
       ⟨https://github.com/linux-rdma/rdma-core.git⟩ on 2025-08-11.  (At
       that time, the date of the most recent commit that was found in
       the repository was 2025-08-04.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there is
       a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to
       man-pages@man7.org

libibverbs                      2015-01-29                IBV_INC_RKEY(3)