IBV_ALLOC_MW - Online Linux Manual PageSection : 3
Updated : 2016-02-02
Source : libibverbs
Note : Libibverbs Programmer's Manual

NAMEibv_alloc_mw, ibv_dealloc_mw − allocate or deallocate a memory window (MW)

SYNOPSIS#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);

DESCRIPTIONibv_alloc_mw() allocates a memory window (MW) associated with the protection domain pd. The MW's type (1 or 2A/2B) is type. 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.

RETURN VALUEibv_alloc_mw() returns a pointer to the allocated MW, or NULL if the request fails. The remote key (R_Key) field rkey is used by remote processes to perform Atomic and RDMA operations. This key will be changed during bind operations. The remote process places this rkey as the rkey field of struct ibv_send_wr passed to the ibv_post_send function. ibv_dealloc_mw() returns 0 on success, or the value of errno on failure (which indicates the failure reason).

NOTESibv_dereg_mr() fails if any memory window is still bound to this MR.

SEE ALSOibv_alloc_pd(3), ibv_post_send(3), ibv_bind_mw(3), ibv_reg_mr(3),

AUTHORSMajd Dibbiny <majd@mellanox.com>  Yishai Hadas <yishaih@mellanox.com>
0
Johanes Gumabo
Data Size   :   6,315 byte
man-i___bv_alloc_mw.3Build   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 255,921
Visitor ID   :     :  
Visitor IP   :   18.217.116.245   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_TP|38|i___bv_alloc_mw.3|55|EOF|Yishai Hadas )