IBV_INC_RKEY(3)
π IBV_INC_RKEY π
okay so bestie, welcome to the Libibverbs Programmer's Manual β¨ β this one's a lil baby page but it's lowkey iconic, let's get into it π«Ά
πΈ NAME πΈ
ibv_inc_rkey β literally just creates a new rkey from the given one, no cap π
π¦ SYNOPSIS π¦
#include <infiniband/verbs.h>
uint32_t ibv_inc_rkey(uint32_t rkey);
β¨ DESCRIPTION β¨
So ibv_inc_rkey() takes your rkey and bumps the 8 LSB of it, then hands you back the shiny new value π like it's giving "tiny little increment, big little consequences," yk? The 8 least-significant bits go up and that's the whole vibe β¨
π RETURN VALUE π
ibv_inc_rkey() returns the new rkey. that's it. that's the return value π«Ά she gives you the new one and she's done π
π NOTES π
okay so the tea β β this verb generates a new rkey that's different from the previous one on its tag part, but has the same index (bits 0xffffff00). so the tag changes, the index stays put, slay π
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. iykyk ππ₯
π§ AUTHORS π§
- Majd Dibbiny
<majd@mellanox.com> - Yishai Hadas
<yishaih@mellanox.com>
give them their flowers fr fr ππ
and that's the whole page bestie β brought to you by libibverbs, dated 2015-01-29 ποΈβ¨ go forth and increment those rkeys, mwah π
π¦ where this page comes from
- alpine 3.24: rdma-core-doc 61.0-r0 Β· GPL-2.0-only OR BSD-2-Clause
- centos-stream 10: rdma-core-devel 62.0-3.el10 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- ubuntu jammy: libibverbs-dev 39.0-1 Β· BSD-MIT OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms