1RDMA_POST_SEND(3)        Librdmacm Programmer's Manual       RDMA_POST_SEND(3)
2
3
4

NAME

6       rdma_post_send - post a work request to send a message.
7

SYNOPSIS

9       #include <rdma/rdma_verbs.h>
10
11       int  rdma_post_send  (struct rdma_cm_id *id, void *context, void *addr,
12       size_t length, struct ibv_mr *mr, int flags);
13

ARGUMENTS

15       id          A reference to a communication identifier where the message
16                   buffer will be posted.
17
18       context     User-defined context associated with the request.
19
20       addr        The address of the memory buffer to post.
21
22       length      The length of the memory buffer.
23
24       mr          Optional  registered  memory  region  associated  with  the
25                   posted buffer.
26
27       flags       Optional flags used to control the send operation.
28

DESCRIPTION

30       Posts a work request to the send queue of  the  queue  pair  associated
31       with the rdma_cm_id.  The contents of the posted buffer will be sent to
32       the remote peer of a connection.
33

RETURN VALUE

35       Returns 0 on success, or -1 on error.  If an error occurs,  errno  will
36       be set to indicate the failure reason.
37

NOTES

39       The  user is responsible for ensuring that the remote peer has queued a
40       receive request before issuing the send operations.  For a list of sup‐
41       ported  flags,  see  ibv_post_send.   Unless  the send request is using
42       inline data, the message buffer must have been registered before  being
43       posted, with the mr parameter referencing the registration.  The buffer
44       must remain registered until the send completes.
45
46       Send operations may not be posted to an rdma_cm_id or the corresponding
47       queue pair until it has been connected.
48
49       The  user-defined  context  associated  with  the  send request will be
50       returned to the user through the work completion  wr_id,  work  request
51       identifier, field.
52

SEE ALSO

54       rdma_cm(7),    rdma_connect(3),    rdma_accept(3),    ibv_post_send(3),
55       rdma_post_sendv(3), rdma_post_recv(3)
56
57
58
59librdmacm                         2010-07-19                 RDMA_POST_SEND(3)
Impressum