Query: umad_open_port
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
UMAD_OPEN_PORT(3) OpenIB Programmer's Manual UMAD_OPEN_PORT(3)NAMEumad_open_port - open InfiniBand device port for umad accessSYNOPSIS#include <infiniband/umad.h> int umad_open_port(char *ca_name, int portnum);DESCRIPTIONumad_open_port() opens the port portnum of the IB device ca_name for umad access. The port is selected by the library if not all parameters are provided (see umad_get_port() for details).RETURN VALUEumad_open_port() returns 0 or an unique positive value of umad device descriptor on success, and a negative value on error as follows: -ENODEV IB device can't be resolved -EINVAL port is not valid (bad portnum or no umad device) -EIO umad device for this port can't be openedSEE ALSOumad_close_port(3), umad_get_cas_names(3), umad_get_port(3)AUTHORHal Rosenstock <halr@voltaire.com> OpenIB May 21, 2007 UMAD_OPEN_PORT(3)