IBND_DISCOVER_FABRIC - Online Linux Manual PageSection : 3
Updated : July 25, 2008
Source : OpenIB
Note : OpenIB Programmer's Manual
NAMEibnd_discover_fabric, ibnd_destroy_fabric, ibnd_debug ibnd_show_progress − initialize ibnetdiscover library.
SYNOPSIS#include <infiniband/ibnetdisc.h>
ibnd_fabric_t *ibnd_discover_fabric(struct ibmad_port *ibmad_port, int timeout_ms, ib_portid_t *from, int hops)
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)
DESCRIPTION
ibnd_discover_fabric() Discover the fabric connected to the port specified by ibmad_port, using a timeout specified. The "from" and "hops" parameters are optional and allow one to scan part of a fabric by specifying a node "from" and a number of hops away from that node to scan, "hops". This gives the user a "sub-fabric" which is "centered" anywhere they chose. 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 SMP's which will be issued on the wire simultaneously.
RETURN VALUEibnd_discover_fabric() return NULL on failure, otherwise a valid ibnd_fabric_t object. ibnd_destory_fabric(), ibnd_debug() NONE ibnd_set_max_smps_on_wire() The previous value is returned
EXAMPLESDiscover 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); ...
SEE ALSOlibibmad, mad_rpc_open_port
AUTHORSIra Weiny <weiny2@llnl.gov> 0
Johanes Gumabo
Data Size : 7,518 byte
man-ibnd_debug.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 170,404
Visitor ID : :
Visitor IP : 3.129.73.6 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (rof_TP|38|i___bnd_debug.3|65|EOF|Ira Weiny
)