Skip to content


0.00 avg. rating (0% score) - 0 votes
const char *ibv_port_state_str(enum ibv_port_state port_state);


ibv_port_state_str() returns a string that describes a logical port state enumerated value.


Name Direction Description
port_state in The logical port state that its string description is requested

Return Values

Value Description
On success A string that describes the logical port state
On error The string "unknown". If port_state isn't a valid logical port state value


Print a description of a logical port state enumerated value:

const char *descr;
descr = ibv_port_state_str(IBV_PORT_ACTIVE);
printf("The description of the enumerated value %d is %s\n", IBV_PORT_ACTIVE,

Share Our Posts

Share this post through social bookmarks.

  • Delicious
  • Digg
  • Newsvine
  • RSS
  • StumbleUpon
  • Technorati


Tell us what do you think.

There are no comments on this entry.

Add a Comment

Fill in the form and submit.

Time limit is exhausted. Please reload CAPTCHA.