Skip to content

ibv_port_state_str()

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

Description

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

Parameters

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

Examples

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,
       descr);

Share Our Posts

Share this post through social bookmarks.

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

Comments

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.