Main index | Section 3 | Options |
#include <infiniband/verbs.h>struct ibv_mw *ibv_alloc_mw(struct ibv_pd *pd, enum ibv_mw_type type);
int ibv_dealloc_mw(struct ibv_mw *mw);
The MW is created not bound. For it to be useful, the MW must be bound, through either ibv_bind_mw (type 1) or a special WR (type 2). Once bound, the memory window allows RDMA (remote) access to a subset of the MR to which it was bound, until invalidated by: ibv_bind_mw verb with zero length for type 1, IBV_WR_LOCAL_INV/IBV_WR_SEND_WITH_INV WR opcode for type 2, deallocation.
ibv_dealloc_mw() Unbinds in case was previously bound and deallocates the MW mw.
ibv_dealloc_mw() returns 0 on success, or the value of errno on failure (which indicates the failure reason).
Majd Dibbiny <majd@mellanox.com>
| |
2016-02-02 | IBV_ALLOC_MW (3) | libibverbs |
Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | If you are angry with someone, you should walk a mile in their shoes - then you'll be a mile away from them, and you'll have their shoes. | ” |