svn commit: r268163 - in user/jceel/soc2014_evdev/head/sys: conf dev/evdev
jakub.klama at uj.edu.pl
Wed Jul 2 15:56:57 UTC 2014
On Wed, 02 Jul 2014 17:44:13 +0200, Hans Petter Selasky wrote:
> On 07/02/14 17:40, Jakub Wojciech Klama wrote:
>> +static int
>> +uinput_poll(struct cdev *dev, int events, struct thread *td)
>> + struct uinput_cdev_state *state;
>> + int ret;
>> + int revents = 0;
>> + debugf("cdev: poll by thread %d", td->td_tid);
>> + ret = devfs_get_cdevpriv((void **)&state);
>> + if (ret != 0)
>> + return (ret);
> In case of error "poll" returns POLLNVAL, I think.
Actually, whole uinput_poll() code is bogus and will be
corrected - all that poll() on uinput node should do is
to always allow write.
However, thanks for pointing that out - same piece of code
exists in evdev/cdev.c, where it actually needs to be fixed.
More information about the svn-src-user