From: jay.p.patel-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org,
Jay Patel <jay.p.patel-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Subject: [PATCH 1/1] Libibumad: Clarify the man page for function umad_get_ca_portguids
Date: Mon, 8 Aug 2016 13:49:58 -0400 [thread overview]
Message-ID: <1470678598-27218-2-git-send-email-jay.p.patel@intel.com> (raw)
In-Reply-To: <1470678598-27218-1-git-send-email-jay.p.patel-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
From: Jay Patel <jay.p.patel-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Clarified the return value explanation of umad_get_ca_portguids() in
corresponding man page.
Signed-off-by: Jay Patel <jay.p.patel-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
man/umad_get_ca_portguids.3 | 3 +++
1 file changed, 3 insertions(+)
diff --git a/man/umad_get_ca_portguids.3 b/man/umad_get_ca_portguids.3
index 3512649..ff8d433 100644
--- a/man/umad_get_ca_portguids.3
+++ b/man/umad_get_ca_portguids.3
@@ -29,6 +29,9 @@ uint64_t entries.
On success,
.B umad_get_ca_portguids()
returns a non-negative value equal to the number of port GUIDs actually filled.
+Not all filled entries may be valid. Invalid entries will be 0.
+For example, calling function on computing node with only one port returns a value of 2.
+The value at index zero will be invalid as it is reserved for switches.
On failure, a negative value is returned.
.SH "SEE ALSO"
.BR umad_get_cas_names (3)
--
1.8.2.3
--
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 prev parent reply other threads:[~2016-08-08 17:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-08 17:49 [PATCH 0/1] Libibumad: Clarify the man page for function umad_get_ca_portguids jay.p.patel-ral2JQCrhuEAvxtiuMwx3w
[not found] ` <1470678598-27218-1-git-send-email-jay.p.patel-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-08-08 17:49 ` jay.p.patel-ral2JQCrhuEAvxtiuMwx3w [this message]
[not found] ` <1470678598-27218-2-git-send-email-jay.p.patel-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-08-08 21:49 ` [PATCH 1/1] " 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=1470678598-27218-2-git-send-email-jay.p.patel@intel.com \
--to=jay.p.patel-ral2jqcrhueavxtiumwx3w@public.gmane.org \
--cc=hal-VPRAkNaXOzVWk0Htik3J/w@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