|
NAMEibv_rereg_mr - re-register a memory region (MR) SYNOPSIS#include <infiniband/verbs.h>
int ibv_rereg_mr(struct ibv_mr *mr, int flags,
struct ibv_pd * pd, void *addr,
size_t length, int access);
DESCRIPTIONibv_rereg_mr() Modifies the attributes of an existing memory region (MR) mr. Conceptually, this call performs the functions deregister memory region followed by register memory region. Where possible, resources are reused instead of deallocated and reallocated. flags is a bit-mask used to indicate which of the following properties of the memory region are being modified. Flags should be a combination (bit field) of:
When IBV_REREG_MR_CHANGE_PD is used, pd represents
the new PD this MR should be registered to.
The access and other flags are represented in the field access. This field describes the desired memory protection attributes; it is either 0 or the bitwise OR of one or more of ibv_access_flags. RETURN VALUEibv_rereg_mr() returns 0 on success, otherwise an error has
occurred, enum ibv_rereg_mr_err_code represents the error as of
below.
NOTESEven on a failure, the user still needs to call ibv_dereg_mr on this MR. SEE ALSOibv_reg_mr(3), ibv_dereg_mr(3), AUTHORS
|