Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

umad_get_port(3) [debian man page]

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 specified, 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 deal- located. 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 negative value on error. AUTHORS
Hal Rosenstock <halr@voltaire.com> Dotan Barak <dotanb@mellanox.co.il> OpenIB May 21, 2007 UMAD_GET_PORT(3)

Check Out this Related Man Page

UMAD_GET_CA(3)						    OpenIB Programmer's Manual						    UMAD_GET_CA(3)

NAME
umad_get_ca, umad_release_ca - get and release InfiniBand device port attributes SYNOPSIS
#include <infiniband/umad.h> int umad_get_ca(char *ca_name, umad_ca_t *ca); int umad_release_ca(umad_ca_t *ca); DESCRIPTION
umad_get_ca() gets the attributes of the InfiniBand device ca_name. It fills the ca structure with the device attributes specified by the ca_name or with the default device attributes if ca_name is NULL. umad_release_ca() should be called before the ca structure is deallo- cated. The argument ca is an umad_ca_t struct, as specified in <infiniband/umad.h>. typedef struct umad_ca { char ca_name[UMAD_CA_NAME_LEN]; /* Name of the device */ uint node_type; /* Type of the device */ int numports; /* Number of physical ports */ char fw_ver[20]; /* FW version */ char ca_type[40]; /* CA type (e.g. MT23108, etc.) */ char hw_ver[20]; /* Hardware version */ uint64_t node_guid; /* Node GUID */ uint64_t system_guid; /* System image GUID */ umad_port_t *ports[UMAD_CA_MAX_PORTS]; /* Array of device port properties */ } umad_ca_t; umad_release_ca() releases the resources that were allocated in the function umad_get_ca(). RETURN VALUE
umad_get_ca() and umad_release_ca() return 0 on success, and a negative value on error. AUTHORS
Hal Rosenstock <halr@voltaire.com> Dotan Barak <dotanb@mellanox.co.il> OpenIB May 21, 2007 UMAD_GET_CA(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

OPening A Port

My mail went down and the company told me to open port 110 on my server. How do I do this? (2 Replies)
Discussion started by: djatwork
2 Replies

2. Cybersecurity

port 111

hi if i do a portscan on my fbsd box, i got one port that i don't want to see it open that's port 111, sunrpc, how can i close it? and also my-sql port 1433 and port 1523 (cichild-lm) tnx for your help!! (6 Replies)
Discussion started by: Stormpie
6 Replies

3. Linux

Port

Hi, how can I know if a port is already closed by fire wall ? And by which instruction to close or open this port ? Many thanks before. (1 Reply)
Discussion started by: big123456
1 Replies

4. UNIX for Advanced & Expert Users

Port Redundancy

Dears, I have server has two port's(Enet0,Enet1) what I want as follows: Make the two port's has same IP address where, if the port Enet0 became down automaticly Enet1 become up :confused: . Amen (4 Replies)
Discussion started by: amen00
4 Replies

5. AIX

port

How I can Open the Port 4444 on my AIX machine (2 Replies)
Discussion started by: habuzahra
2 Replies

6. SCO

Telnetd Port Options

Ok, here i am in 2008 trying to figure out how to edit the port of Telnetd in sco openserver 4.2. I googled my butt off and cant seem to find any info. Does anyone have some specific howto's or good documentation on this? (2 Replies)
Discussion started by: j0ntar
2 Replies

7. Shell Programming and Scripting

Port num incrementing

Hello Guyz These days Iam doing pretty good scripting work that is all because of you fellas.Thank you so much. As it goes ,here comes my next problem.Iam trying to implement automatic port number incrementing. For ex: demo() { echo "Enter for default port: read port ... (5 Replies)
Discussion started by: coolkid
5 Replies

8. Solaris

Please help with opening a port??

Hello all, I need assistance... I need to open a port # 36677 and have it remain open even after a power cycle. I thought all I needed to do was add it to /etc/services. That was not it... Can someone please tell me how to do this. Thank you. (6 Replies)
Discussion started by: komputersman
6 Replies

9. Solaris

Finding port number !!

Hi all , I want know the port no on which a particular application is running. How to find that? Thanks in anticipation (11 Replies)
Discussion started by: kumarmani
11 Replies

10. Solaris

how to open specific port

Dear members, My release is open Solaris b103 1- How to know the opening port in my system 2- How to open a specific port like port number 53 3- How to closed the specific port like port number 53 Your feedback highly appreciated (10 Replies)
Discussion started by: dellroxy
10 Replies

11. Solaris

how to open a specific port

Hi All, Can anyone let me know that how to open a specific port in Solaris 10. I just wanted to know if there are some certain commands to open a port (like ftp, telnet). It would be also better if someone can tell me if there is another firewall service in Solaris 10 except ipfilter. ... (6 Replies)
Discussion started by: naw_deepak
6 Replies

12. AIX

Releasing a Port

Hey Guys, I need a help, After I upgraded my server to AIX 6.1.4 the port 80 is occupied by a Java process bash-3.00# netstat -Aan | grep "*.80" f1000700007d7bb0 tcp 0 0 *.80 *.* LISTEN bash-3.00# rmsock f1000700007d7bb0 tcp usage: rmsock Addr... (2 Replies)
Discussion started by: kkeng808
2 Replies

13. UNIX for Dummies Questions & Answers

Port already in use

I want to install something using port 9080 but the installer throws an error that port 9080 is in use. The last time I had this error, I tried # netstat -an|grep 9080 f1000e000019d3b0 tcp 0 0 *.9080 *.* LISTEN Use this info, I found the process,... (3 Replies)
Discussion started by: shoefiend
3 Replies

14. Programming

Using Different port for Daytime Service

Hi all, is it possible to use a different port number for daytime service. By default the port number of daytime service is 13, so what if I want to get the time from a different port number e.g say 9000 (or any other port). I guess this would remain the same on the server side !... (2 Replies)
Discussion started by: manisum
2 Replies

15. AIX

Allow port range using IPsec?

Hi Guys, Please could you tell me if it is possible to have a single rule/filter to allow a certain port range instead of a separate rule for each port? I'm sure it must be possible but I am unable to find the syntax. Thanks Chris (4 Replies)
Discussion started by: chrisstevens
4 Replies