Module Name: src Committed By: dyoung Date: Fri Jul 8 22:38:08 UTC 2011
Modified Files: src/share/man/man9: bus_dma.9 Log Message: Describe some of the expected return codes from bus_dmamap_load(9). To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/share/man/man9/bus_dma.9 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/man/man9/bus_dma.9 diff -u src/share/man/man9/bus_dma.9:1.55 src/share/man/man9/bus_dma.9:1.56 --- src/share/man/man9/bus_dma.9:1.55 Fri Jul 1 22:06:19 2011 +++ src/share/man/man9/bus_dma.9 Fri Jul 8 22:38:08 2011 @@ -1,4 +1,4 @@ -.\" $NetBSD: bus_dma.9,v 1.55 2011/07/01 22:06:19 dyoung Exp $ +.\" $NetBSD: bus_dma.9,v 1.56 2011/07/08 22:38:08 dyoung Exp $ .\" .\" Copyright (c) 1996, 1997, 1998, 2001, 2005, 2006 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -28,7 +28,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd July 1, 2011 +.Dd July 8, 2011 .Dt BUS_DMA 9 .Os .Sh NAME @@ -327,6 +327,17 @@ .Fn bus_dmamap_load . .Pp Returns 0 on success, or an error code to indicate mode of failure. +Possible error codes include the following: +.Pp +.Bl -tag -width dmam -compact +.It Er EINVAL +.Fa buflen +is too large for the DMA map. +.It Er EFBIG +Too many segments. +.It Er ENOMEM +Could not allocate memory for, e.g., a bounce buffer. +.El .It Fn bus_dmamap_load_mbuf "tag" "dmam" "chain" "flags" This is a variation of .Fn bus_dmamap_load