]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/ofed/librdmacm/man/rdma_post_writev.3
Merge sendmail 8.16.1 to HEAD: See contrib/sendmail/RELEASE_NOTES for details
[FreeBSD/FreeBSD.git] / contrib / ofed / librdmacm / man / rdma_post_writev.3
1 .\" Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md
2 .TH "RDMA_POST_WRITEV" 3 "2010-07-19" "librdmacm" "Librdmacm Programmer's Manual" librdmacm
3 .SH NAME
4 rdma_post_writev \- post an RDMA write work request.
5 .SH SYNOPSIS
6 .B "#include <rdma/rdma_verbs.h>"
7 .P
8 .B "int" rdma_post_writev
9 .BI "(struct rdma_cm_id *" id ","
10 .BI "void *" context ","
11 .BI "struct ibv_sge *" sgl ","
12 .BI "int " nsge ","
13 .BI "int " flags ","
14 .BI "uint64_t " remote_addr ","
15 .BI "uint32_t " rkey ");"
16 .SH ARGUMENTS
17 .IP "id" 12
18 A reference to a communication identifier where the request 
19 will be posted.
20 .IP "context" 12
21 User-defined context associated with the request.
22 .IP "sgl" 12
23 A scatter-gather list of the source buffers of the write.
24 .IP "nsge" 12
25 The number of scatter-gather array entries.
26 .IP "flags" 12
27 Optional flags used to control the write operation.
28 .IP "remote_addr" 12
29 The address of the remote registered memory to write into.
30 .IP "rkey" 12
31 The registered memory key associated with the remote address.
32 .SH "DESCRIPTION"
33 Posts a work request to the send queue of the queue pair associated
34 with the rdma_cm_id.  The contents of the local data buffers will be
35 written into the remote memory region.
36 .SH "RETURN VALUE"
37 Returns 0 on success, or -1 on error.  If an error occurs, errno will be
38 set to indicate the failure reason.
39 .SH "NOTES"
40 For a list of supported flags, see ibv_post_send.  Unless inline
41 data is specified, the local data buffers must have been registered
42 before the write is issued, and the buffers must remain registered
43 until the write completes.  The remote buffers must always be registered.
44 .P
45 Write operations may not be posted to an rdma_cm_id or the corresponding
46 queue pair until it has been connected.
47 .P
48 The user-defined context associated with the write request will be
49 returned to the user through the work completion wr_id, work request
50 identifier, field.
51 .SH "SEE ALSO"
52 rdma_cm(7), rdma_connect(3), rdma_accept(3),
53 ibv_post_send(3), rdma_post_write(3), rdma_reg_write(3), rdma_reg_msgs(3)