| .\" -*- nroff -*- | |
| .\" Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md | |
| .\" | |
| .TH UMAD_SET_ADDR 3 "May 17, 2007" "OpenIB" "OpenIB Programmer's Manual" | |
| .SH "NAME" | |
| umad_set_addr \- set MAD address fields within umad buffer using host ordering | |
| .SH "SYNOPSIS" | |
| .nf | |
| .B #include <infiniband/umad.h> | |
| .sp | |
| .BI "int umad_set_addr(void " "*umad" ", int " "dlid" ", int " "dqp" ", int " "sl" ", int " "qkey"); | |
| .fi | |
| .SH "DESCRIPTION" | |
| .B umad_set_addr() | |
| sets the MAD address fields within the specified | |
| .I umad\fR | |
| buffer using the provided host ordered fields. | |
| .I dlid\fR | |
| is the destination LID. | |
| .I dqp\fR | |
| is the destination QP (queue pair). | |
| .I sl\fR | |
| is the SL (service level). | |
| .I qkey\fR | |
| is the Q_Key (queue key). | |
| .SH "RETURN VALUE" | |
| .B umad_set_addr() | |
| returns 0 on success, and a negative value on errors. Currently, there | |
| are no errors indicated. | |
| .SH "SEE ALSO" | |
| .BR umad_set_addr_net (3) | |
| .SH "AUTHOR" | |
| .TP | |
| Hal Rosenstock <halr@voltaire.com> |