Skip to contentSkip to conversation

Libibumad: Clarify the man page for function umad_get_ca_portguids

PATCH In review [email protected] 2 participants 3 messages Aug 8, 2016 2 messages not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

cover Libibumad: Clarify the man page for function umad_get_ca_portguids

From: Jay Patel <[email protected]>

The function umad_get_ca_portguids returns a value of 2 even if there is only one valid port. The man page for the function only specifies that the return value is equal to number of port GUIDs actually filled. This may be confusing for user as it does not specify that there may be invalid entries in the array.

Any change in interface may break existing user. Hence, clarification is made in man page that some entries in the array may be invalid and should be ignored.

Jay Patel (1):
Libibumad: Clarify the man page for function umad_get_ca_portguids

 man/umad_get_ca_portguids.3 | 3 +++
 1 file changed, 3 insertions(+)
Signature · 6 lines
1.8.2.3

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw

PATCH 1/1 Libibumad: Clarify the man page for function umad_get_ca_portguids

In reply to a message not in the archive

From: Jay Patel <[email protected]>

Clarified the return value explanation of umad_get_ca_portguids() in corresponding man page.

---
 man/umad_get_ca_portguids.3 | 3 +++
 1 file changed, 3 insertions(+)
man/umad_get_ca_portguids.3 +3 -0
index 3512649..ff8d433 100644
@@ -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)
Signature · 6 lines
1.8.2.3

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw
In reply to a message not in the archive
Quoted 4 lines · On 8/8/2016 1:49 PM, [email protected] wrote:

From: Jay Patel <[email protected]>

Clarified the return value explanation of umad_get_ca_portguids() in corresponding man page.

Thanks. Applied.

Quoted 10 lines
---
 man/umad_get_ca_portguids.3 | 3 +++
 1 file changed, 3 insertions(+)
man/umad_get_ca_portguids.3 +0 -0
index 3512649..ff8d433 100644

man/umad_get_ca_portguids.3 uint64_t entries. · line 34

Quoted 6 lines
man/umad_get_ca_portguids.3 +3 -0
@@ -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.

I changed the wording a little.

-- Hal

man/umad_get_ca_portguids.3 uint64_t entries. · line 37

Quoted 4 lines
man/umad_get_ca_portguids.3 +0 -0
 On failure, a negative value is returned.
 .SH "SEE ALSO"
 .BR umad_get_cas_names (3)

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html