From: Ira Weiny <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH] libibumad: document the setting of errno for umad_send and umad_recv
Date: Fri, 29 Mar 2013 11:21:19 -0700 [thread overview]
Message-ID: <20130329112119.1bb9ee1f7e687fc40c7a841d@intel.com> (raw)
Signed-off-by: Ira Weiny <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
man/umad_recv.3 | 3 ++-
man/umad_send.3 | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/man/umad_recv.3 b/man/umad_recv.3
index e233411..56e4ca7 100644
--- a/man/umad_recv.3
+++ b/man/umad_recv.3
@@ -55,7 +55,8 @@ be returned.
.SH "RETURN VALUE"
.B umad_recv()
-returns non negative receiving agentid on success, and a negative value on error as follows:
+on success return the agentid; on error, errno is set and a negative value is
+returned as follows:
-EINVAL invalid port handle or agentid or *length is less than the minimum supported
-EIO receive operation failed
-EWOULDBLOCK non blocking read can't be fulfilled
diff --git a/man/umad_send.3 b/man/umad_send.3
index feb33af..b85bc56 100644
--- a/man/umad_send.3
+++ b/man/umad_send.3
@@ -39,7 +39,8 @@ makes kernel wait forever for the reply.
indicates the number of times the MAD will be retried before giving up.
.SH "RETURN VALUE"
.B umad_send()
-returns 0 on success, and a negative value on error as follows:
+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
.SH "AUTHOR"
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2013-03-29 18:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-29 18:21 Ira Weiny [this message]
[not found] ` <20130329112119.1bb9ee1f7e687fc40c7a841d-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2013-04-02 9:19 ` [PATCH] libibumad: document the setting of errno for umad_send and umad_recv Or Gerlitz
[not found] ` <515AA29B.6000800-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2013-04-02 14:41 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A823736F369EC5-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-04-02 19:17 ` Or Gerlitz
2013-04-02 15:10 ` Weiny, Ira
2013-04-04 11:21 ` Hal Rosenstock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130329112119.1bb9ee1f7e687fc40c7a841d@intel.com \
--to=ira.weiny-ral2jqcrhueavxtiumwx3w@public.gmane.org \
--cc=hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox