Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jun 2006 14:01:08 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Jimmy Olgeni <olgeni@uli.it>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: bus_dmamap_load_uio and uiomove
Message-ID:  <20060606120108.GF74562@garage.freebsd.pl>
In-Reply-To: <20060530143518.C36362@server.localdomain.net>
References:  <20060530143518.C36362@server.localdomain.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--hK8Uo4Yp55NZU70L
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, May 30, 2006 at 02:49:22PM +0200, Jimmy Olgeni wrote:
+>=20
+> Hello,
+>=20
+> Just quick busdma question...
+>=20
+> I'm currently upgrading a custom device driver to use bus_dmamap_load_ui=
o rather than uiomove. Everything works fine, but calls to "write" fail unl=
ess I set uio->uio_resid=20
+> to 0 by hand (as I'm not using uiomove anymore).
+>=20
+> Am I supposed to set uio_resid by hand when using bus_dmamap_load_uio, o=
r is there a better way to signal that all the data in uio was used?

=46rom what I see, bus_dmamap_load_uio() is using uio_resid as the number
of bytes to proceed, so it has to be set before the call.

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--hK8Uo4Yp55NZU70L
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFEhW6EForvXbEpPzQRAlAcAJ0Ur51Nxqvyd6mwKbacKAirzQXqiQCglGzU
CidF70hGu1FRcMaKANFi7GM=
=qWgz
-----END PGP SIGNATURE-----

--hK8Uo4Yp55NZU70L--



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