1 .\" Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md
2 .TH "RDMA_POST_UD_SEND" 3 "2010-07-19" "librdmacm" "Librdmacm Programmer's Manual" librdmacm
4 rdma_post_ud_send \- post a work request to send a datagram.
6 .B "#include <rdma/rdma_verbs.h>"
8 .B "int" rdma_post_ud_send
9 .BI "(struct rdma_cm_id *" id ","
10 .BI "void *" context ","
12 .BI "size_t " length ","
13 .BI "struct ibv_mr *" mr ","
15 .BI "struct ibv_ah *" ah ","
16 .BI "uint32_t " remote_qpn ");"
19 A reference to a communication identifier where the message buffer
22 User-defined context associated with the request.
24 The address of the memory buffer to post.
26 The length of the memory buffer.
28 Optional registered memory region associated with the posted buffer.
30 Optional flags used to control the send operation.
32 An address handle describing the address of the remote node.
34 The number of the destination queue pair.
36 Posts a work request to the send queue of the queue pair associated
37 with the rdma_cm_id. The contents of the posted buffer will be sent
38 to the specified destination queue pair.
40 Returns 0 on success, or -1 on error. If an error occurs, errno will be
41 set to indicate the failure reason.
43 The user is responsible for ensuring that the destination queue pair
44 has queued a receive request before issuing the send operations. For a list of
45 supported flags, see ibv_post_send. Unless the send request is using
46 inline data, the message buffer must have been registered
47 before being posted, with the mr parameter referencing the registration.
48 The buffer must remain registered until the send completes.
50 The user-defined context associated with the send request will be
51 returned to the user through the work completion wr_id, work request
54 rdma_cm(7), rdma_connect(3), rdma_accept(3), rdma_reg_msgs(3)
55 ibv_post_send(3), rdma_post_recv(3)