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

NAME

6       rdma_post_read - post an RDMA read work request.
7

SYNOPSIS

9       #include <rdma/rdma_verbs.h>
10
11       int  rdma_post_read  (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

ARGUMENTS

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 address of the local destination of the read request.
22
23       length      The length of the read operation.
24
25       mr          Registered memory region associated with the local buffer.
26
27       flags       Optional flags used to control the read operation.
28
29       remote_addr The address of the remote registered memory to read from.
30
31       rkey        The  registered  memory  key  associated  with  the  remote
32                   address.
33

DESCRIPTION

35       Posts  a  work  request  to the send queue of the queue pair associated
36       with the rdma_cm_id.  The contents of the remote memory region will  be
37       read into the local data buffer.
38

RETURN VALUE

40       Returns  0  on success, or -1 on error.  If an error occurs, errno will
41       be set to indicate the failure reason.
42

NOTES

44       For a list of supported flags, see ibv_post_send.  Both the remote  and
45       local data buffers must have been registered before the read is issued,
46       and the buffers must remain registered until the read completes.
47
48       Read operations may not be posted to an rdma_cm_id or the corresponding
49       queue pair until it has been connected.
50
51       The  user-defined  context  associated  with  the  read request will be
52       returned to the user through the work completion  wr_id,  work  request
53       identifier, field.
54

SEE ALSO

56       rdma_cm(7),    rdma_connect(3),    rdma_accept(3),    ibv_post_send(3),
57       rdma_post_readv(3), rdma_reg_read(3), rdma_reg_msgs(3)
58
59
60
61librdmacm                         2010-07-19                 RDMA_POST_READ(3)
Impressum