kernels/linux-2.4.0/net/irda/irnet/irnet_irda.c
/*------------------------------------------------------------------*/
/*
 * Function irnet_flow_indication (instance, sap, flow)
 *
 *    Used by TinyTP to tell us if it can accept more data or not
 *
 */
Function irnet_flow_indication (instance, sap, flow)
Used by TinyTP to tell us if it can accept more data or not
Function irnet_flow_indication ( instance sap flow ) Used by TinyTP to tell us if it can accept more data or not
static void
irnet_flow_indication(void *	instance,
		      void *	sap,
		      LOCAL_FLOW flow) 
{
  irnet_socket *	self = (irnet_socket *) instance;
  DENTER(IRDA_TCB_TRACE, "(self=0x%X, flow=%d)\n", (unsigned int) self, flow);
  self->tx_flow = flow;
  switch(flow)
    {
    case FLOW_START:
      DEBUG(IRDA_CB_INFO, "IrTTP wants us to start again\n");
      ppp_output_wakeup(&self->chan);
      break;
    case FLOW_STOP:
      DEBUG(IRDA_CB_INFO, "IrTTP wants us to slow down\n");
      break;
    default:
      DEBUG(IRDA_CB_INFO, "Unknown flow command!\n");
      break;
    }
  DEXIT(IRDA_TCB_TRACE, "\n");
}
static void irnet_flow_indication ( void * instance , void * sap , LOCAL_FLOW flow ) { irnet_socket * self = ( irnet_socket * ) instance ; DENTER ( IRDA_TCB_TRACE , " \n " , ( unsigned int ) self , flow ) ; self -> tx_flow = flow ; switch ( flow ) { case FLOW_START : DEBUG ( IRDA_CB_INFO , " \n " ) ; ppp_output_wakeup ( & self -> chan ) ; break ; case FLOW_STOP : DEBUG ( IRDA_CB_INFO , " \n " ) ; break ; default : DEBUG ( IRDA_CB_INFO , " \n " ) ; break ; } DEXIT ( IRDA_TCB_TRACE , " \n " ) ; }
Function irnet_flow_indication (instance, sap, flow)
    Used by TinyTP to tell us if it can accept more data or not
Function irnet_flow_indication ( instance sap flow ) Used by TinyTP to tell us if it can accept more data or not
/* Update our state */ /* Check what IrTTP want us to do... */