From owner-svn-src-user@FreeBSD.ORG Wed Jul 2 15:44:03 2014 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C2051372; Wed, 2 Jul 2014 15:44:03 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 824C8239C; Wed, 2 Jul 2014 15:44:00 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 9792B1FE02D; Wed, 2 Jul 2014 17:43:58 +0200 (CEST) Message-ID: <53B428CD.6040402@selasky.org> Date: Wed, 02 Jul 2014 17:44:13 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Jakub Wojciech Klama , src-committers@freebsd.org, svn-src-user@freebsd.org Subject: Re: svn commit: r268163 - in user/jceel/soc2014_evdev/head/sys: conf dev/evdev References: <201407021540.s62FePTQ029148@svn.freebsd.org> In-Reply-To: <201407021540.s62FePTQ029148@svn.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2014 15:44:03 -0000 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. --HPS