svn commit: r268163 - in user/jceel/soc2014_evdev/head/sys: conf dev/evdev
Hans Petter Selasky
hps at selasky.org
Wed Jul 2 16:08:04 UTC 2014
On 07/02/14 18:00, Jakub Klama wrote:
> 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.
> Hm... POLLNVAL or rather POLLERR?
Search for POLLNVAL in "kern/sys_generic.c" and you'll see why.
POLLNVAL is used if the file descriptor is no longer valid. POLLERR is
More information about the svn-src-user