From owner-freebsd-hackers@FreeBSD.ORG Fri May 20 13:16:30 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B336816A4CE for ; Fri, 20 May 2005 13:16:30 +0000 (GMT) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9EDC43DBC for ; Fri, 20 May 2005 13:16:29 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: tC2uFeET5U2ZgUk1ospYHg== Received: from mp-217-201-83.daxnet.no ([193.217.201.83] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 4.3c5) with ESMTP id 371874514; Fri, 20 May 2005 15:15:54 +0200 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org Date: Fri, 20 May 2005 15:16:41 +0200 User-Agent: KMail/1.7 References: <200505200029.j4K0TJNb000312@karga.hank.home> In-Reply-To: <200505200029.j4K0TJNb000312@karga.hank.home> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200505201516.42733.hselasky@c2i.net> cc: Dirk GOUDERS Subject: Re: page fault in ugenpoll() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hselasky@c2i.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2005 13:16:30 -0000 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