/* Mark device non-existent. This disables writes, ioctls and prevents new users from opening the device. Already posted blocking reads will stay, however new ones will fail.  */
static void mousedev_mark_dead(struct mousedev *mousedev)
/* Mark device non-existent. This disables writes, ioctls and prevents new users from opening the device. Already posted blocking reads will stay, however new ones will fail.  */
static void mousedev_mark_dead(struct mousedev *mousedev)
{
	mutex_lock(&mousedev->mutex);
	mousedev->exist = 0;
	mutex_unlock(&mousedev->mutex);
}