logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ibv_inc_rkey - creates a new rkey from the given one

Authors

Majd Dibbiny majd@mellanox.com, Yishai Hadas yishaih@mellanox.com libibverbs 2015-01-29 IBV_INC_RKEY(3)

Description

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

Name

ibv_inc_rkey - creates a new rkey from the given one

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.

Return Value

ibv_inc_rkey() returns the new rkey.

Synopsis

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

See Also