/* Mark device non-existant. 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 joydev_mark_dead(struct joydev *joydev)
/* Mark device non-existant. 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 joydev_mark_dead(struct joydev *joydev)
{
	mutex_lock(&joydev->mutex);
	joydev->exist = 0;
	mutex_unlock(&joydev->mutex);
}