Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 May 2006 14:49:22 +0200 (CEST)
From:      Jimmy Olgeni <olgeni@uli.it>
To:        freebsd-hackers@FreeBSD.org
Subject:   bus_dmamap_load_uio and uiomove
Message-ID:  <20060530143518.C36362@server.localdomain.net>

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

Hello,

Just quick busdma question...

I'm currently upgrading a custom device driver to use 
bus_dmamap_load_uio rather than uiomove. Everything works fine, but 
calls to "write" fail unless I set uio->uio_resid to 0 by hand (as I'm 
not using uiomove anymore).

Am I supposed to set uio_resid by hand when using bus_dmamap_load_uio, 
or is there a better way to signal that all the data in uio was used?

-- 
jimmy



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