0.00 avg. rating (0% score) - 0 votes
const char *ibv_port_state_str(enum ibv_port_state port_state); |
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); |
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);
Written by: Dotan Barak on April 27, 2013.on January 31, 2014.
Share Our Posts
Share this post through social bookmarks.
Add a Comment
This comment will be moderated; answer may be provided within 14 days.
Comments
Tell us what do you think.
There are no comments on this entry.