Skip to content

ibv_wc_status_str()

5.00 avg. rating (97% score) - 1 vote
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);

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.