UMAD_SEND(3) OpenIB Programmer's ManualUMAD_SEND(3)umad_send - send umad
#include <infiniband/umad.h>int umad_send(intportid, intagentid, void*umad, intlength, inttimeout_ms, intretries);
umad_send()sendslength bytes from the specifiedumad buffer from the port specified byportid, and using the agent specified byagentid. The buffer can contain a RMPP transmission which is larger than a single MAD packet when the agentid specifies a class which utilizes RMPP and the header flags indicate RMPP is active. NOTE currently only RMPPFlags.Active is meaningful in the header in user space. All other RMPP fields are ignored. The data section of the buffer will be sent in multiple RMPP MAD packets with headers built for the user.timeout_ms controls the solicited MADs behavior as follows: zero value means not solicited. Positive value makes kernel indicate timeout in milliseconds. If reply is not received within the specified value, the original buffer is returned in the read channel with the status field set (to non zero). Negativetimeout_ms makes kernel wait forever for the reply.retries indicates the number of times the MAD will be retried before giving up.
umad_send()returns 0 on success; on error, errno is set and a negative value is returned as follows: -EINVAL invalid port handle or agentid -EIO send operation failed
Hal Rosenstock <halr@voltaire.com>
This page is part of therdma-core (RDMA Core Userspace Libraries and Daemons) project. Information about the project can be found at ⟨https://github.com/linux-rdma/rdma-core⟩. If you have a bug report for this manual page, send it to linux-rdma@vger.kernel.org. This page was obtained from the project's upstream Git repository ⟨https://github.com/linux-rdma/rdma-core.git⟩ on 2025-08-11. (At that time, the date of the most recent commit that was found in the repository was 2025-08-04.) If you discover any rendering problems in this HTML version of the page, or you believe there is a better or more up-to-date source for the page, or you have corrections or improvements to the information in this COLOPHON (which isnot part of the original manual page), send a mail to man-pages@man7.orgOpenIB May 11, 2007UMAD_SEND(3)HTML rendering created 2025-09-06 byMichael Kerrisk, author ofThe Linux Programming Interface. For details of in-depthLinux/UNIX system programming training courses that I teach, lookhere. Hosting byjambit GmbH. | ![]() |