From owner-freebsd-hardware Wed Apr 17 6:20: 5 2002 Delivered-To: freebsd-hardware@freebsd.org Received: from van-laarhoven.org (ap-z-5ab8.adsl.wanadoo.nl [212.129.218.184]) by hub.freebsd.org (Postfix) with SMTP id A179A37B404 for ; Wed, 17 Apr 2002 06:20:01 -0700 (PDT) Received: (qmail 4812 invoked from network); 17 Apr 2002 13:20:00 -0000 Received: from dhcp0-120.van-laarhoven.org (HELO cecile) (10.66.0.120) by uitsmijter.van-laarhoven.org with SMTP; 17 Apr 2002 13:20:00 -0000 Message-ID: <004501c1e612$ede6a4c0$7800420a@vanlaarhoven.org> From: "Nick Hibma" To: "Bruce Evans" , "Peter Haight" Cc: References: <20020417003939.B8131-100000@gamplex.bde.org> Subject: Re: Reading from the USB ugen device. Date: Wed, 17 Apr 2002 15:22:31 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > Here the problem may be the more immediate one that usb returns EIO > instead of EWOULDBLOCK when it can't proceed. EIO is only returned in case of error. I was mistaken. EWOULDBLOCK can never be returned because the ugen driver can't know whether or no the transfer is going to block. There is no such thing as a poll for data on the USB bus. Nick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message