/* 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 evdev_mark_dead(struct evdev *evdev)
/* 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 evdev_mark_dead(struct evdev *evdev)
{
	mutex_lock(&evdev->mutex);
	evdev->exist = 0;
	mutex_unlock(&evdev->mutex);
}