|
NAMEibv_bind_mw - post a request to bind a type 1 memory window to a memory regionSYNOPSIS#include <infiniband/verbs.h> int ibv_bind_mw(struct ibv_qp *qp, struct ibv_mw *mw, struct ibv_mw_bind *mw_bind); DESCRIPTIONibv_bind_mw() posts to the queue pair qp a request to bind the memory window mw according to the details in mw_bind.The argument mw_bind is an ibv_mw_bind struct, as defined in <infiniband/verbs.h>. struct ibv_mw_bind { struct ibv_mw_bind_info { The QP Transport Service Type must be either UC, RC or XRC_SEND for bind operations. The attribute send_flags describes the properties of the WR. It is either 0 or the bitwise OR of one or more of the following flags:
The mw_access_flags define the allowed access to the MW after the bind completes successfully. It is either 0 or the bitwise OR of one or more of the following flags:
RETURN VALUEibv_bind_mw() returns 0 on success, or the value of errno on failure (which indicates the failure reason). In case of a success, the R_key of the memory window after the bind is returned in the mw_bind->mw->rkey field.NOTESThe bind does not complete when the function return - it is merely posted to the QP. The user should keep a copy of the old R_key, and fix the mw structure if the subsequent CQE for the bind operation indicates a failure. The user may safely send the R_key using a send request on the same QP, (based on QP ordering rules: a send after a bind request on the same QP are always ordered), but must not transfer it to the remote in any other manner before reading a successful CQE.Note that for type 2 MW, one should directly post bind WR to the QP, using ibv_post_send. SEE ALSOibv_alloc_mw(3), ibv_post_send(3), ibv_poll_cq(3) ibv_reg_mr(3),AUTHORS
Visit the GSP FreeBSD Man Page Interface. |