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