summaryrefslogtreecommitdiff
path: root/Documentation/core-api
diff options
context:
space:
mode:
authorKarl Mehltretter <kmehltretter@gmail.com>2026-08-22 14:16:47 +0200
committerJonathan Corbet <corbet@lwn.net>2026-08-31 15:33:18 -0600
commitdf5489eae615d81da9036b8709f7c169f2da7945 (patch)
tree3600c3ee576342299d8d45ec8408058ad3b95010 /Documentation/core-api
parentdf72403da9ec8e18086c71c4c3bc608856dfa023 (diff)
docs: dma-attributes: Fix dma_alloc_attrs() name
dma_alloc_attr() does not exist; the allocation API is dma_alloc_attrs(). Fixes: d5724f172fd1 ("common: DMA-mapping: add DMA_ATTR_NO_KERNEL_MAPPING attribute") Assisted-by: Codex:gpt-5.6-sol Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com> Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Acked-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Message-ID: <20260822121651.1559-4-kmehltretter@gmail.com>
Diffstat (limited to 'Documentation/core-api')
-rw-r--r--Documentation/core-api/dma-attributes.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/core-api/dma-attributes.rst b/Documentation/core-api/dma-attributes.rst
index eee743184acd..b07126b5b616 100644
--- a/Documentation/core-api/dma-attributes.rst
+++ b/Documentation/core-api/dma-attributes.rst
@@ -34,7 +34,7 @@ such mapping is non-trivial task and consumes very limited resources
(like kernel virtual address space or dma consistent address space).
Buffers allocated with this attribute can be only passed to user space
by calling dma_mmap_attrs(). By using this API, you are guaranteeing
-that you won't dereference the pointer returned by dma_alloc_attr(). You
+that you won't dereference the pointer returned by dma_alloc_attrs(). You
can treat it as a cookie that must be passed to dma_mmap_attrs() and
dma_free_attrs(). Make sure that both of these also get this attribute
set on each call.