示例#1
0
文件: gm.c 项目: carriercomm/ix
void my_send_callback (struct gm_port *port, void *context, gm_status_t status)
{

  if (status != GM_SUCCESS)
  {
    if (status != GM_SEND_DROPPED)
    {
      gm_perror ("send completed with error", status);
    }
  }
}
示例#2
0
static void
get_callback (struct gm_port *p, void *completion_ctr, gm_status_t status)
{
    if (status != GM_SUCCESS)
    {
	gm_perror ("Get error", status);
    }

    ++MPID_nem_module_gm_num_send_tokens;

    OPA_decr_int ((int *)completion_ctr);
}