1UMAD_OPEN_PORT(3)         OpenIB Programmer's Manual         UMAD_OPEN_PORT(3)
2
3
4

NAME

6       umad_open_port - open InfiniBand device port for umad access
7

SYNOPSIS

9       #include <infiniband/umad.h>
10
11       int umad_open_port(char *ca_name, int portnum);
12

DESCRIPTION

14       umad_open_port()  opens  the  port portnum of the IB device ca_name for
15       umad access. The port is selected by the library if not all  parameters
16       are provided (see umad_get_port() for details).
17

RETURN VALUE

19       umad_open_port()  returns  0 or an unique positive value of umad device
20       descriptor on success, and a negative value on error as follows:
21        -EOPNOTSUPP ABI version doesn't match
22        -ENODEV     IB device can't be resolved
23        -EINVAL     port is not valid (bad portnum or no umad device)
24        -EIO        umad device for this port can't be opened
25

SEE ALSO

27       umad_close_port(3), umad_get_cas_names(3), umad_get_port(3)
28

AUTHOR

30       Hal Rosenstock <halr@voltaire.com>
31
32
33
34OpenIB                           May 21, 2007                UMAD_OPEN_PORT(3)
Impressum