kernels/linux-2.4.0/drivers/char/i810-tco.c
/*
 *	Allow only one person to hold it open
 */
Allow only one person to hold it open
Allow only one person to hold it open
static int i810tco_open (struct inode *inode, struct file *file)
{
	if (timer_alive)
		return -EBUSY;
	tco_timer_reload ();
	tco_timer_start ();
	timer_alive = 1;
	return 0;
}
static int i810tco_open ( struct inode * inode , struct file * file ) { if ( timer_alive ) return - EBUSY ; tco_timer_reload ( ) ; tco_timer_start ( ) ; timer_alive = 1 ; return 0 ; }
Allow only one person to hold it open
Allow only one person to hold it open
/*
	 *      Reload and activate timer
	 */