Date: Wed, 02 Jul 2014 18:08:13 +0200 From: Hans Petter Selasky <hps@selasky.org> To: Jakub Klama <jakub.klama@uj.edu.pl> Cc: src-committers@freebsd.org, Jakub Wojciech Klama <jceel@FreeBSD.org>, svn-src-user@freebsd.org Subject: Re: svn commit: r268163 - in user/jceel/soc2014_evdev/head/sys: conf dev/evdev Message-ID: <53B42E6D.3020305@selasky.org> In-Reply-To: <28a06d7587dc84e2e03928b8aa7a403f@uj.edu.pl> References: <201407021540.s62FePTQ029148@svn.freebsd.org> <53B428CD.6040402@selasky.org> <28a06d7587dc84e2e03928b8aa7a403f@uj.edu.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
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); >> >> Hi, >> >> In case of error "poll" returns POLLNVAL, I think. > > Hm... POLLNVAL or rather POLLERR? > Hi, 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 something else. --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53B42E6D.3020305>