Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2002 16:04:31 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Nick Hibma <n_hibma@van-laarhoven.org>
Cc:        Peter Haight <peterh@sapros.com>, <hardware@FreeBSD.ORG>
Subject:   Re: Reading from the USB ugen device. 
Message-ID:  <20020418160144.T13784-100000@gamplex.bde.org>
In-Reply-To: <004501c1e612$ede6a4c0$7800420a@vanlaarhoven.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 17 Apr 2002, Nick Hibma wrote:

> > 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.

It seems to sometimes return ETIMEDOUT, which causes the same problem.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hardware" in the body of the message




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