Date: Mon, 17 Apr 2017 12:48:12 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 218625] [PATCH] Evdev ioctls EVIOCGRAB and EVIOCREVOKE don't work together with cuse Message-ID: <bug-218625-8-EFQOazACWD@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-218625-8@https.bugs.freebsd.org/bugzilla/> References: <bug-218625-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218625 --- Comment #3 from Jan Kokem=C3=BCller <jan.kokemueller@gmail.com> --- (In reply to Vladimir Kondratyev from comment #2) This doesn't fix the issue, sadly. With the current definition of EVIOCGRAB, when you do something like this o= n a cuse-based Evdev device: ioctl(dev->fd, EVIOCGRAB, (void *)1); /* grab device */ ioctl(dev->fd, EVIOCGRAB, (void *)0); /* ungrab device */ ...both times you get 10000 (CUSE_BUF_MIN_PTR) inside the ioctl handler. So= you cannot ungrab a device again. The value 10000 comes from here: https://github.com/freebsd/freebsd/blob/master/sys/fs/cuse/cuse.c#L1676 I don't know if this is cuse specific behavior, or if FreeBSD in general behaves like this. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218625-8-EFQOazACWD>