From 102acd72aa160751b5772dcfaa660035b17df865 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Wed, 15 Apr 2020 01:39:17 +0000 Subject: [PATCH] bus_dma.9: Remove erroneous usage recommendation It is not valid to pass BUS_SPACE_UNRESTRICTED to bus_dma_tag_create()'s nsegments parameter as it is interpreted as a very large segment count. Subsequent allocation operations on the tag will preallocate some multiple of that count. BUS_SPACE_UNRESTRICTED therefore indicates something like: malloc(infinity). Discussed with: bcr, jhb (earlier version) --- share/man/man9/bus_dma.9 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/share/man/man9/bus_dma.9 b/share/man/man9/bus_dma.9 index 110a227a09c..1c416d4b8a5 100644 --- a/share/man/man9/bus_dma.9 +++ b/share/man/man9/bus_dma.9 @@ -53,7 +53,7 @@ .\" $FreeBSD$ .\" $NetBSD: bus_dma.9,v 1.25 2002/10/14 13:43:16 wiz Exp $ .\" -.Dd March 27, 2020 +.Dd April 14, 2020 .Dt BUS_DMA 9 .Os .Sh NAME @@ -618,9 +618,6 @@ DMA mapping associated with this tag. .It Fa nsegments Number of discontinuities (scatter/gather segments) allowed in a DMA mapped region. -If there is no restriction, -.Dv BUS_SPACE_UNRESTRICTED -may be specified. .It Fa maxsegsz Maximum size, in bytes, of a segment in any DMA mapped region associated with