5.00 avg. rating (97% score) - 1 vote
const char *ibv_wc_status_str(enum ibv_wc_status status); |
const char *ibv_wc_status_str(enum ibv_wc_status status);
Description
ibv_wc_status_str() returns a string that describes a Work Completion status enumerated value.
Parameters
Name |
Direction |
Description |
status |
in |
The Work Completion status that its string description is requested |
Return Values
Value |
Description |
On success |
A string that describes the Work Completion status |
On error |
The string "unknown". If status isn't a valid Work Completion status value |
Examples
Print a description of a Work Completion status enumerated value:
const char *descr;
descr = ibv_wc_status_str(IBV_WC_SUCCESS);
printf("The description of the enumerated value %d is %s\n", IBV_WC_SUCCESS,
descr); |
const char *descr;
descr = ibv_wc_status_str(IBV_WC_SUCCESS);
printf("The description of the enumerated value %d is %s\n", IBV_WC_SUCCESS,
descr);
Written by: Dotan Barak on May 10, 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.