ibvpostrecv
ibv_post_recv is a function in the libibverbs API used to post one or more receive work requests to the receive queue of a queue pair (QP). It is a core primitive for handling incoming messages in InfiniBand and RDMA communications, enabling the hardware to DMA incoming data into user buffers described by the posted work requests.
The typical prototype is: int ibv_post_recv(struct ibv_qp *qp, const struct ibv_recv_wr *wr, struct ibv_recv_wr **bad_wr); The
A receive work request describes one or more memory buffers via a linked array of scatter/gather entries
On success, ibv_post_recv returns 0 and sets bad_wr to NULL. On failure, it returns a nonzero error
Usage typically involves preparing a pool of pre-registered buffers, constructing a linked list of ibv_recv_wr with