| Main index | Section 3 | Options |
#include <infiniband/ibnetdisc.h>void ibnd_destroy_fabric(ibnd_fabric_t *fabric) void ibnd_debug(int i) void ibnd_show_progress(int i) int ibnd_set_max_smps_on_wire(int i)
ibmad_port must be opened with at least IB_SMI_CLASS and IB_SMI_DIRECT_CLASS classes for ibnd_discover_fabric to work.
ibnd_destroy_fabric() free all memory and resources associated with the fabric.
ibnd_debug() Set the debug level to be printed as library operations take place.
ibnd_show_progress() Indicate that the library should print debug output which shows it's progress through the fabric.
ibnd_set_max_smps_on_wire() Set the number of SMPs which will be issued on the wire simultaneously.
ibnd_destory_fabric(), ibnd_debug() NONE
ibnd_set_max_smps_on_wire() The previous value is returned
Discover the entire fabric connected to device mthca0, port 1.
int mgmt_classes[2] = {IB_SMI_CLASS, IB_SMI_DIRECT_CLASS};
struct ibmad_port *ibmad_port = mad_rpc_open_port(ca, ca_port, mgmt_classes, 2);
ibnd_fabric_t *fabric = ibnd_discover_fabric(ibmad_port, 100, NULL, 0);
...
ibnd_destroy_fabric(fabric);
mad_rpc_close_port(ibmad_port);
Discover only a single node and those nodes connected to it.
...
str2drpath(&(port_id.drpath), from, 0, 0);
...
ibnd_discover_fabric(ibmad_port, 100, &port_id, 1);
...
| July 25, 2008 | IBND_DISCOVER_FABRIC (3) | OpenIB |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | The most horrifying thing about Unix is that, no matter how many times you hit yourself over the head with it, you never quite manage to lose consciousness. It just goes on and on. | ” |
| — Patrick Sobalvarro | ||