Beispiel #1
0
static int
sun_mouse_close(struct inode *inode, struct file *file)
{
	sun_mouse_fasync (-1, file, 0);
	if (--sunmouse.active)
		return 0;
	sunmouse.ready = 0;
	return 0;
}
Beispiel #2
0
static int
sun_mouse_close(struct inode *inode, struct file *file)
{
	lock_kernel();
	sun_mouse_fasync (-1, file, 0);
	sunmouse.active--;
	unlock_kernel();
	return 0;
}