kernels/linux-2.4.0/drivers/net/tokenring/tms380tr.c
/*
 * Timeout function while waiting for event
 */
Timeout function while waiting for event
Timeout function while waiting for event
static void tms380tr_timer_end_wait(unsigned long data)
{
	struct net_device *dev = (struct net_device*)data;
	struct net_local *tp = (struct net_local *)dev->priv;
	if(tp->Sleeping)
	{
		tp->Sleeping = 0;
		wake_up_interruptible(&tp->wait_for_tok_int);
	}
	return;
}
static void tms380tr_timer_end_wait ( unsigned long data ) { struct net_device * dev = ( struct net_device * ) data ; struct net_local * tp = ( struct net_local * ) dev -> priv ; if ( tp -> Sleeping ) { tp -> Sleeping = 0 ; wake_up_interruptible ( & tp -> wait_for_tok_int ) ; } return ; }
Timeout function while waiting for event
Timeout function while waiting for event