1RDMA_POST_WRITE(3) Librdmacm Programmer's Manual RDMA_POST_WRITE(3)
2
3
4
6 rdma_post_write - post an RDMA write work request.
7
9 #include <rdma/rdma_verbs.h>
10
11 int rdma_post_write (struct rdma_cm_id *id, void *context, void *addr,
12 size_t length, struct ibv_mr *mr, int flags, uint64_t remote_addr,
13 uint32_t rkey);
14
16 id A reference to a communication identifier where the request
17 will be posted.
18
19 context User-defined context associated with the request.
20
21 addr The local address of the source of the write request.
22
23 length The length of the write operation.
24
25 mr Optional memory region associated with the local buffer.
26
27 flags Optional flags used to control the write operation.
28
29 remote_addr The address of the remote registered memory to write into.
30
31 rkey The registered memory key associated with the remote
32 address.
33
35 Posts a work request to the send queue of the queue pair associated
36 with the rdma_cm_id. The contents of the local data buffer will be
37 written into the remote memory region.
38
40 Returns 0 on success, or -1 on error. If an error occurs, errno will
41 be set to indicate the failure reason.
42
44 For a list of supported flags, see ibv_post_send. Unless inline data
45 is specified, the local data buffer must have been registered before
46 the write is issued, and the buffer must remain registered until the
47 write completes. The remote buffer must always be registered.
48
49 Write operations may not be posted to an rdma_cm_id or the correspondā
50 ing queue pair until it has been connected.
51
52 The user-defined context associated with the write request will be
53 returned to the user through the work completion wr_id, work request
54 identifier, field.
55
57 rdma_cm(7), rdma_connect(3), rdma_accept(3), ibv_post_send(3),
58 rdma_post_writev(3), rdma_reg_write(3), rdma_reg_msgs(3)
59
60
61
62librdmacm 2010-07-19 RDMA_POST_WRITE(3)