Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2005 15:16:41 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-hackers@freebsd.org
Cc:        Dirk GOUDERS <gouders@et.bocholt.fh-ge.de>
Subject:   Re: page fault in ugenpoll()
Message-ID:  <200505201516.42733.hselasky@c2i.net>
In-Reply-To: <200505200029.j4K0TJNb000312@karga.hank.home>
References:  <200505200029.j4K0TJNb000312@karga.hank.home>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 20 May 2005 02:29, Dirk GOUDERS wrote:
> Hello,
>
> just for completeness, I want to provide a simple program that causes
> a kernel panic when invoked with the argument /dev/ugen0:

The control endpoint /dev/ugen0 does not support polling. But 
polling /dev/ugen0.X should work, where "X" is a number.

"ugenpoll()" in "/sys/dev/usb/ugen.c" should have something like this added:

if(control endpoint) return POLLNVAL; /* and not "return EIO;" */

Please file a PR on this issue using:

>Category:      usb

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505201516.42733.hselasky>