Skip to content

Commit c0c3e1b

Browse files
committed
reachable: Update documentation on reachable function
Added information on the type of objects provided in the list as well as the required fields for them. Signed-off-by: William Zhang <[email protected]>
1 parent c9214cc commit c0c3e1b

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

opal/mca/reachable/reachable.h

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
44
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
55
* reserved.
6-
* Copyright (c) 2017 Amazon.com, Inc. or its affiliates.
6+
* Copyright (c) 2017-2019 Amazon.com, Inc. or its affiliates.
77
* All Rights reserved.
88
* $COPYRIGHT$
99
*
@@ -58,14 +58,24 @@ typedef int (*opal_reachable_base_module_fini_fn_t)(void);
5858
/* Build reachability matrix between local and remote ethernet
5959
* interfaces
6060
*
61+
* @param local_ifs (IN) Local list of opal_if_t objects
62+
* The opal_if_t objects must be fully populated
63+
* @param remote_ifs (IN) Remote list of opal_if_t objects
64+
* The opal_if_t objects must have the following fields populated:
65+
* uint16_t af_family;
66+
* struct sockaddr_storage if_addr;
67+
* uint32_t if_mask;
68+
* uint32_t if_bandwidth;
69+
* @return opal_reachable_t The reachability matrix was successfully created
70+
* @return NULL The reachability matrix could not be constructed
71+
*
6172
* Given a list of local interfaces and remote interfaces from a
6273
* single peer, build a reachability matrix between the two peers.
6374
* This function does not select the best pairing of local and remote
6475
* interfaces, but only a (comparable) reachability between any pair
6576
* of local/remote interfaces.
6677
*
67-
* @returns a reachable object containing the reachability matrix on
68-
* success, NULL on failure.
78+
*
6979
*/
7080
typedef opal_reachable_t*
7181
(*opal_reachable_base_module_reachable_fn_t)(opal_list_t *local_ifs,

0 commit comments

Comments
 (0)