umad_release_port man page on Scientific

Man page or keyword search:  
man Server   26626 pages
apropos Keyword Search (all sections)
Output format
Scientific logo
[printable version]

UMAD_GET_PORT(3)	  OpenIB Programmer´s Manual	      UMAD_GET_PORT(3)

NAME
       umad_get_port, umad_release_port - open and close an InfiniBand port

SYNOPSIS
       #include <infiniband/umad.h>

       int umad_get_port(char *ca_name, int portnum, umad_port_t *port);
       int umad_release_port(umad_port_t *port);

DESCRIPTION
       umad_get_port()	fills  the  port structure with the IB port attributes
       specified by ca_name and portnum , or the default port  if  ca_name  is
       NULL and portnum is zero. If only one of ca_name and portnum are speci‐
       fied, the other is used as a  filter.   For  example,  passing  a  NULL
       ca_name and 2 for the portnum means get a port from any of the local IB
       devices, as long as it is the second port.  Note that the  library  may
       use   some   reference	scheme	 to  support  port  caching  therefore
       umad_release_port() should be called before the port structure  can  be
       deallocated.   The argument port is an umad_port_t struct, as specified
       in <infiniband/umad.h>.

       typedef struct umad_port {
	       char ca_name[UMAD_CA_NAME_LEN];		       /* Name of the device */
	       int portnum;				       /* Physical port number */
	       uint base_lid;				       /* Base port LID */
	       uint lmc;				       /* LMC of LID */
	       uint sm_lid;				       /* SM LID */
	       uint sm_sl;				       /* SM service level */
	       uint state;				       /* Logical port state */
	       uint phys_state;				       /* Physical port state */
	       uint rate;				       /* Port link bit rate */
	       uint64_t capmask;			       /* Port capabilities */
	       uint64_t gid_prefix;			       /* Gid prefix of this port */
	       uint64_t port_guid;			       /* GUID of this port */
       } umad_port_t;

       umad_release_port() releases the resources that were allocated  by  the
       umad_get_port() function for the specified IB port.

RETURN VALUE
       umad_get_port() and umad_release_port() return 0 on success, and a neg‐
       ative value on error.

AUTHORS
       Hal Rosenstock <halr@voltaire.com>

       Dotan Barak <dotanb@mellanox.co.il>

OpenIB				 May 21, 2007		      UMAD_GET_PORT(3)
[top]

List of man pages available for Scientific

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net