Skip to content

Posts Tagged ‘Programming ’

int ibv_attach_mcast(struct ibv_qp *qp, const union ibv_gid *gid, uint16_t lid);int ibv_attach_mcast(struct ibv_qp *qp, const union ibv_gid *gid, uint16_t lid); Description ibv_attach_mcast() attaches a Queue Pair to a multicast group. After the attachment completes, this QP will be provided with a...

void ibv_ack_cq_events(struct ibv_cq *cq, unsigned int nevents);void ibv_ack_cq_events(struct ibv_cq *cq, unsigned int nevents); Description ibv_ack_cq_events() acknowledge Completion events. In order to prevent races, all of the Completion events that were read using ibv_get_cq_event() must be acknowledged using ibv_ack_cq_events(). Calling ibv_ack_cq_events()...

int ibv_get_cq_event(struct ibv_comp_channel *channel, struct ibv_cq **cq, void **cq_context);int ibv_get_cq_event(struct ibv_comp_channel *channel, struct ibv_cq **cq, void **cq_context); Description ibv_get_cq_event() waits for the next Completion event, according to the Completion event type that was requested using ibv_req_notify_cq() for a specific Completion...

int ibv_req_notify_cq(struct ibv_cq *cq, int solicited_only);int ibv_req_notify_cq(struct ibv_cq *cq, int solicited_only); Description ibv_req_notify_cq() requests a Completion Notification on a Completion Queue (CQ). ibv_req_notify_cq() requests a notification when the next Work Completion of a requested type is added to the CQ....

int ibv_poll_cq(struct ibv_cq *cq, int num_entries, struct ibv_wc *wc);int ibv_poll_cq(struct ibv_cq *cq, int num_entries, struct ibv_wc *wc); Description ibv_poll_cq() polls Work Completions from a Completion Queue (CQ). A Work Completion indicates that a Work Request in a Work Queue, and...

int ibv_post_srq_recv(struct ibv_srq *srq, struct ibv_recv_wr *recv_wr, struct ibv_recv_wr **bad_recv_wr);int ibv_post_srq_recv(struct ibv_srq *srq, struct ibv_recv_wr *recv_wr, struct ibv_recv_wr **bad_recv_wr); Description ibv_post_srq_recv() posts a linked list of Work Requests (WRs) to a Shared Receive Queue (SRQ). ibv_post_srq_recv() go over all of...

int ibv_post_recv(struct ibv_qp *qp, struct ibv_recv_wr *wr, struct ibv_recv_wr **bad_wr);int ibv_post_recv(struct ibv_qp *qp, struct ibv_recv_wr *wr, struct ibv_recv_wr **bad_wr); Description ibv_post_recv() posts a linked list of Work Requests (WRs) to the Receive Queue of a Queue Pair (QP). ibv_post_recv() go...

int ibv_post_send(struct ibv_qp *qp, struct ibv_send_wr *wr, struct ibv_send_wr **bad_wr);int ibv_post_send(struct ibv_qp *qp, struct ibv_send_wr *wr, struct ibv_send_wr **bad_wr); Description ibv_post_send() posts a linked list of Work Requests (WRs) to the Send Queue of a Queue Pair (QP). ibv_post_send() go...

int ibv_query_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr, enum ibv_qp_attr_mask attr_mask, struct ibv_qp_init_attr *init_attr);int ibv_query_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr, enum ibv_qp_attr_mask attr_mask, struct ibv_qp_init_attr *init_attr); Description ibv_query_qp() returns the attributes and current values of a Queue Pair. struct ibv_qp_attr describes...

int ibv_modify_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr, int attr_mask);int ibv_modify_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr, int attr_mask); Description ibv_modify_qp() modifies the attributes of a Queue Pair. The changed attributes describe the send and receive attributes of the QP. In UC...